I am using geth 1.9.12. When I try to deploy any contract, using the console, I get the error: Error: exceeds block gas limit undefined What exactly is this error?

Thanks in advance.

  • What exactly is your code??? – goodvibration Apr 16 at 7:13
  • I use remix to create the contract. The code I use is the WEB3DEPLOY from Compilation details. – D. Dimopoulos Apr 16 at 7:17
  • Please share your contract code AND your deployment code as part of your question, in plain text (no links or images). – goodvibration Apr 16 at 7:28
  • pragma solidity ^0.4.25; contract SampleContract { bytes32 testValue; function setValue(bytes32 value, uint256 requestCode) { testValue = value; ValidationAndPaymentEvent(requestCode); } function getValue() public view returns(bytes32) { return testValue; } event ValidationAndPaymentEvent ( // STEP 7 uint256 requestCode ); } – D. Dimopoulos Apr 16 at 7:46
  • In your question please. And properly formatted. Thank you. – goodvibration Apr 16 at 7:49

Your Answer

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

Browse other questions tagged or ask your own question.