0

I'm trying to use a form to submit the data, but every time I try to run the code it throws an error.

pragma solidity >=0.4.21 <0.7.0;

contract SimpleStorage {
  uint storedData;

  function set(uint256 x) public {
    storedData = x;
  }

  function get() public view returns (uint) {
    return storedData;
  }
}

2
  • How does your Javascript code look like currently? But this is not about React, this is more of a JavaScript/web3 question. And what web3 library are you using? Sep 1, 2021 at 10:38
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Sep 1, 2021 at 11:30

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.