We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pure function call
I try to test an require statements on pure function Code below:
pure function
pragma solidity 0.8.19; contract Test { function test1() public pure returns(uint256) { require(false, "Fail"); return 1; } }
test1
The text was updated successfully, but these errors were encountered:
Return on Tomochain Testnet:
{ "jsonrpc": "2.0", "id": 1, "result": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000044661696c00000000000000000000000000000000000000000000000000000000" }
Return on Ethereum Sepolia:
{ "jsonrpc": "2.0", "id": 1, "error": { "code": 3, "message": "execution reverted: Fail", "data": "0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000044661696c00000000000000000000000000000000000000000000000000000000" } }
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I try to test an require statements on
pure function
Code below:
Result when call
test1
:Expected Result:
The text was updated successfully, but these errors were encountered: