This is a great guide (OpenZeppelin Upgrades: Step by Step Tutorial for Truffle)! However, at the step of deployment, when I deployed using below (on ganache)
$ npx truffle migrate -f 2
I got the below message:
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Starting migrations...
======================
> Network name: 'development'
> Network id: 5777
> Block gas limit: 6721975 (0x6691b7)
2_deploy_box.js
===============
Deploying 'AdminUpgradeabilityProxy'
------------------------------------
> transaction hash: 0xe4443dc8c967751088af206eb2552a1386b4c8e0ddaec0a03b737cbd0211778e
> Blocks: 0 Seconds: 0
> contract address: 0xA3C9bc34cBa39adE517105AB73302caaD14Eb9E1
> block number: 26
> block timestamp: 1603893970
> account: 0x898E0FDE588806744505D0c2B34653b4D11380Bb
> balance: 99.86877134
> gas used: 647692 (0x9e20c)
> gas price: 20 gwei
> value sent: 0 ETH
> total cost: 0.01295384 ETH
> Saving artifacts
-------------------------------------
> Total cost: 0.01295384 ETH
Summary
=======
> Total deployments: 1
> Final cost: 0.01295384 ETH
But I didn’t get 3 contracts! (as per the guide - Box, ProxyAdmin, and AdminUpgradeabilityProxy)
I tried multiple times (deleting the project folder, deleting ganache workspace and recreating project folder and all the steps) and only once I guess I got all three contracts displayed.
Now whenever I go to Ganache > Contracts > Click on Box > ganache screen goes completely white.
What I’m missing?