0

So i am trying to publish a smart contract using a guide.

https://github.com/tanishbaansal/legendary_token/blob/main/Legendary.sol

When i am trying to deploy to livenet it gives me the following error, it will deploy to remixes VM test net tho.

creation of Legendary errored: Returned error: {"jsonrpc":"2.0","error":"[ethjs-query] while formatting outputs from RPC '{\"value\":{\"code\":-32603,\"data\":{\"code\":-32000,\"message\":\"transaction underpriced\"}}}'","id":8631497957641221}

Error

Metamask error

7
  • What network are you deploying on? Are you deploying through Injected provider - MetaMask? I just deployed the contract on Goerli and it's 749,390 gas for the legendary contract deployment transaction.
    – Ake
    Commented Oct 25, 2023 at 11:34
  • I am deploying on BEP20 Using Metamask, I have tried larger gas fee on the remix interface but this does not change what metamask tries to charge me for gas.
    – Jim Mike
    Commented Oct 25, 2023 at 11:37
  • I have just added an image of my screen,
    – Jim Mike
    Commented Oct 25, 2023 at 11:38
  • 1
    When you compile the contract (assuming you have compiled legendary) and before you deploy, make sure you have there in the CONTRACT field on your screen selected Legendary.sol and not IBEP20.sol. Currently you are trying to deploy a different contract.
    – Ake
    Commented Oct 25, 2023 at 11:44
  • I had changed the name to it was deploying IBEP20.sol, But i have just tested again using legendary.sol i compiled it and tried to deploy with the same error. I have attached a new screenshot above including the metamask error received.
    – Jim Mike
    Commented Oct 25, 2023 at 11:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.