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:
provider: () => new HDWalletProvider(
Now I am getting this “deployment failed with error: [object Object]” error.