I have developed a token contract that uses the “contracts-ethereum-package” package so I can use the “ERC20PresetMinterPauserUpgradeSafe” preset to make the contract upgradable.
I am able to deploy the contract to a local Ganache setup and also the rinkeby network and everything works fine as I can mint and transfer tokens. Ropsten on the other hand was giving a lot of errors concerning “exceeds block gas limit”, “The contract code couldn’t be stored, please check your gas limit” and then I changed the network setting to:
I am also getting an error when deploying to Ropsten via Infura. The block limit is very low, and whilst Ropsten has a lower block gas limit, it looks like there is an issue with Ropsten network currently.
Error: *** Deployment Failed ***
"Migrations" exceeded the block limit (with a gas value you set).
* Block limit: 1718867 (0x1a3a53)
* Gas sent: 5500000 (0x53ec60)
* Try:
+ Sending less gas.
+ Setting a higher network block limit if you are on a
private network or test client (like ganache).
Etherscan shows the very low gas limit.
I suggest using another public testnet until this is resolved.