When using the StandaloneERC20 as per the guide if you pick “No” when asked to call a function after deployment, an error is produced.
? Pick a contract to instantiate @openzeppelin/contracts-ethereum-package/StandaloneERC20 ? Pick a network development √ Deploying @openzeppelin/contracts-ethereum-package dependency to network dev-1564745320775 All contracts are up to date ? Do you want to call a function on the instance after creating it? No Possible initialization method (initialize) found in contract. Make sure you initialize your instance. Invalid JSON RPC response: ""
Reproduce by following above flow.
Recommended fix: remove Yes/No option from contracts that can’t be deployed without those an init function being called.
- Windows 10 + Cmder
- openzeppelin-cli 2.5.1