Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert Error: The called function should be payable if you send value and the value you send should be less than your current balance. #3293

Open
ali-sheikh opened this issue Jan 12, 2022 · 0 comments

Comments

@ali-sheikh
Copy link

I'm running into an error when I run Issuer.sol in Remix IDE. It could be a problem with the my flow through the contract. Below are the steps I'm taking:

  1. Import Issuer.sol and all the dependencies to Remix.
  2. deploy Issuer.sol
  3. Run function initialize(uint256 _certificateTopic, address _registry) pass in 010101 for _certificateTopic and msg.sender for _registry
  4. Run function requestCertification(bytes calldata _data) external returns (uint256) pass in 0x00 for _data and verify "_id":1 was issued.
  5. Run function approveCertificationRequest(uint256 _requestId, uint256 _value) public returns (uint256) pass in _id = 1 and _value = 200

Getting the following error:

Note: The called function should be payable if you send value and the value you send should be less than your current balance.

When I debug, the error comes from Registery.sol following function:

function _validate(address _verifier, bytes memory _validityData)

In this case I see: _owner is being passed in for _verifier and abi.encodeWithSignature("isRequestValid(uint256)",_requestId) for _validityData

Any assistance is appreciated!

@ali-sheikh ali-sheikh changed the title The called function should be payable if you send value and the value you send should be less than your current balance. revert Error: The called function should be payable if you send value and the value you send should be less than your current balance. Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant