Deployment failed with error: [object Object] on Ropsten network

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:

ropsten: {
provider: () => new HDWalletProvider(
network_id: 3,
//gas: 1500000,
gasPrice: 10e9,
//networkCheckTimeout: 20000

Now I am getting this “deployment failed with error: [object Object]” error.

1 Like

Hi @emperorjm,

Welcome to the community :wave:

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.

Thanks for testing it out as well. Now I know it’s not something wrong from my end.


Hi @emperorjm,

It looks like Ropsten network has returned to normal and I was able to deploy to Ropsten.