Failed to check for transaction receipt: {} when I am upgrading the contracts

I am facing the error
deployment failed with error: Failed to check for transaction receipt:
{}

when I am upgrading my contracts.

const HDWalletProvider = require('@truffle/hdwallet-provider');
require('dotenv').config()

module.exports = {
  networks: {
    development: {
      protocol: 'http',
      host: 'localhost',
      port: 8545,
      gas: 5000000,
      gasPrice: 5e9,
      networkId: '*',
    },
    mainnet: {
      provider: () => new HDWalletProvider(
        process.env.PRIVATE_KEY, 'https://mainnet.infura.io/v3/projectID'
      ),
      networkId: 1,
      gas:5000000,
      // gasPrice:10*10e9
      // gas:1000000
    },
  
    rinkeby: {
      provider: () => new HDWalletProvider(
        process.env.PRIVATE_KEY, 'https://rinkeby.infura.io/v3/projectID'
      ),
      networkId: 4,
      gasPrice: 10e9
    }
  }
  
}
1 Like

Hi @shakeib98,

I didn’t see a gas price set in your mainnet network configuration.

If you check your address on Etherscan and see if you have a pending transaction and see what the gas price was set to. Also compare with https://www.ethgasstation.info/

Can you please let me know what to update exactly?
Just put
gasPrice:10*10e9 in my mainnet object? And no gas property?

1 Like

Whatever gasPrice I put it is sending transaction with 5GWEI

1 Like

Hi @shakeib98,

Is the transaction complete?

Yes. Thanks for the help! :smiley:

1 Like

You may need to manually update the CLI config with the address of the new logic contract.

Can you explain more what to do here?
I have verified my contract and checked etherscan also. Proxy reference is updated also.
What more to do?

1 Like

Hi @shakeib98,

I was trying to reproduce but am having an issue with my connectivity to Infura.

From what you describe, you performed an upgrade and the transaction was successful, but a transaction receipt was not received. I suggest checking that your <network_name>.json has the updated logic address.

Well it doesn’t have until it fetches the receipt.

1 Like

Hi @shakeib98,

Sorry about the delay. I assume you will need to manually update your <network_name>.json