1

On 12/26/2020 I successfully compiled, migrated and tested on Ropsten via Truffle the following contract https://github.com/estudios-amazonia/FilmVault/blob/main/contracts/FVP_Token.sol. See Ropsten Contract Address: 0x82Bc5871e30FB2C00A3E5B5E6475A2baD88978ba

Today, 12/27/2020 I have been trying to deploy the same contract using the same truffle-config.js file on Mainnet and it gets frozen after compilying. I have used an array of gas / gasPrice combinations. The latest is as follows:

mainnet: {
  networkCheckTimeout: 100000000,
  provider: function() {
    return new HDWalletProvider(maimnem, 'https://mainnet.infura.io/v3' + key);
},
  network_id: 1,
  gas: 4000000,
  gasPrice: 65000000000, // 65Gwei

Therefore, I tried to use Remix, with GASLIMIT 350000 and VALUE 60 Gwei and it has failed twice. See the following Tx https://etherscan.io/tx/0xdbdbe42e7f937f18952db19e94c6e6b42628f90241653f06d724999e278698e5 https://etherscan.io/tx/0x794243d66ba78ab9b349bb0a9abd38c3b2e6de55b396dd7a6b6a1f6258cff005

Would anyone be able to help me troubleshoot what is going on with this migration on Mainnet?

Greatly appreciated.

1

Although I was unable to deploy/migrate via Truffle/Infura with plenty ETH, the contract was finally deployed/migrated via Remix/Metamask by setting GAS LIMIT=800000 and VALUE=0 at a non-peak time.

See https://etherscan.io/tx/0xde603058609d800d0ee2ccc5cf4cfa086a7161a25b9ce774cabae52a7514282c

0

The contract you are trying to deploy has a non-payable constructor and you are sending a 0.00000008 Ethers.

From the transaction trace

[1]     0   PUSH1       238732  3   1
[2]     2   PUSH1       238729  3   1
[3]     4   MSTORE      238726  12  1
[4]     5   CALLVALUE   238714  2   1
[5]     6   DUP1        238712  3   1
[6]     7   ISZERO      238709  3   1
[7]     8   PUSH2       238706  3   1
[8]     11  JUMPI       238703  10  1
[9]     12  PUSH1       238693  3   1
[10]    14  DUP1        238690  3   1
[11]    15  *REVERT     238687  0
12
  • Dear Ismael, thanks for your prompt answer. Could you please shed some light on how exactly I need to modify the contract so that it deploys/migrates into Mainnet? – g.a. mercado Dec 28 '20 at 13:20
  • and I mean, via Truffle/Infura. Since I would not want to try to deploy via Remix again and wast ETH... – g.a. mercado Dec 28 '20 at 14:32
  • @g.a.mercado Just don't send ether with the deployment transaction. If you want more details add deployment script to the question. – Ismael Dec 28 '20 at 15:19
  • Ismael,Those two transactions were generated while deploying/migrating via Remix, which I resorted to since the command "truffle migrate --network mainnet --reset" would just stay there for hours after compiling... – g.a. mercado Dec 28 '20 at 21:32
  • 1
    Dear Ismael, we have successfully deployed/migrated our contract on Mainnet via Remix. Thanks for your recommendations. As noted, we just sent 20 TFF to your ETH wallet 0x3DA55f052f1Db425c93A944937faeB361cf6d35D ; please see etherscan.io/tx/…. For details about our project, please visit github.com/estudios-amazonia/TheFaustFlick; and stay abreast by following our twitter account and joining our telegram community, specially since we will be performing a TFF swap during Q1-2021. Cheers and all the best for you. – g.a. mercado Dec 30 '20 at 1:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.