openzeppelin-sdk icon indicating copy to clipboard operation
openzeppelin-sdk copied to clipboard

Deploying kind minimal shows message: `To upgrade this instance run 'oz upgrade'`

Open abcoathup opened this issue 4 years ago • 2 comments

Deploying kind minimal shows message: To upgrade this instance run 'oz upgrade' when a minimal proxy is not upgradeable.

Example minimal proxy deployment:

$ npx oz deploy
Nothing to compile, all contracts are up to date.
? Choose the kind of deployment minimal
? Pick a network development
? Pick a contract to deploy @openzeppelin/contracts-ethereum-package/ERC20PresetMinte
rPauserUpgradeSafe
Minimal proxy support is still experimental.
✓ Deploying @openzeppelin/contracts-ethereum-package dependency to network dev-1589968356945
All implementations are up to date
? Call a function to initialize the instance after creating it? Yes
? Select which function initialize(name: string, symbol: string)
? name: string: MyToken
? symbol: string: MYT
✓ Instance created at 0x067805E69e62E8bE56e8D13f4EBf53372D3dD02e
✓ Deployed ProxyFactory at 0x6eD79Aa1c71FD7BdBC515EfdA3Bd4e26394435cC
To upgrade this instance run 'oz upgrade'
0x067805E69e62E8bE56e8D13f4EBf53372D3dD02e

abcoathup avatar May 22 '20 08:05 abcoathup

hi,there, I want to know what is the difference between minimal and upgradeable.

shiqinfeng1 avatar May 28 '20 07:05 shiqinfeng1

Hi @shiqinfeng1,

I have posted this question with an answer in the Community Forum: https://forum.openzeppelin.com/t/what-is-the-difference-between-minimal-and-upgradeable-proxies/2964/2?u=abcoathup

If you have further questions we can continue the discussion in the Community Forum. Please ask all the questions that you need.

abcoathup avatar May 29 '20 02:05 abcoathup