You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Import Issuer.sol and all the dependencies to Remix.
deploy Issuer.sol
Run function initialize(uint256 _certificateTopic, address _registry) pass in 010101 for _certificateTopic and msg.sender for _registry
Run function requestCertification(bytes calldata _data) external returns (uint256) pass in 0x00 for _data and verify "_id":1 was issued.
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!
The text was updated successfully, but these errors were encountered:
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
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:Issuer.sol
and all the dependencies to Remix.Issuer.sol
function initialize(uint256 _certificateTopic, address _registry)
pass in 010101 for_certificateTopic
andmsg.sender
for_registry
function requestCertification(bytes calldata _data) external returns (uint256)
pass in0x00
for_data
and verify"_id":1
was issued.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
andabi.encodeWithSignature("isRequestValid(uint256)",_requestId)
for_validityData
Any assistance is appreciated!
The text was updated successfully, but these errors were encountered: