I am new to ethereum and smart contracts, and I am trying to deploy a smart contract to my local blockchain that I created using geth and connected to remix via the External HTTP Provider.

I am deploying the 1_Storage.sol file, which is present by default in the directory.

The file compiles successfully, but when I try to deploy it, this error appears

enter image description here

When I click on send Transaction, it didn't work.

Here is the my pragma statement

enter image description here

And the gas values

enter image description here

1 Answer 1


The problem is that you are trying to deploy the contract with the 100 wei amount. The 1_Storage.sol contract doesn't have a payable constructor, so it doesn't need any amount of ETH as input.

Just set the Value back to 0 and the code will deploy perfectly.

  • Thanks, Now the remix console is stuck in "creation of Storage pending..." and no contract is shown to interact with
    – jnano
    Commented Mar 7, 2023 at 19:13
  • Which network are you deploying it to? Commented Mar 8, 2023 at 13:45
  • I am deploying to my local http geth provider, but I found the solution, it looks like I must be minig blocks in order for the contract to be deployed, I thought geth will automatically start mining blocks when a contract is getting deployed, but it didn't. Thanks for your help
    – jnano
    Commented Mar 8, 2023 at 20:16
  • Glad it worked :) Commented Mar 9, 2023 at 4:45

Your Answer

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

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