Skip to content

Commit

Permalink
contract returs status #45
Browse files Browse the repository at this point in the history
  • Loading branch information
vo-nil committed Nov 4, 2023
1 parent aabe646 commit 8968c79
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ contract modular_verifier_$TEST_NAME$ is IModularVerifier{
function verify(
bytes calldata blob,
uint256[] calldata public_input
) public view{
) public view returns (bool result) {
verifier_state memory state;
state.b = true;
state.gas = gasleft();
Expand Down Expand Up @@ -266,10 +266,11 @@ contract modular_verifier_$TEST_NAME$ is IModularVerifier{
}
console.log("Gas for verification:", state.gas-gasleft());
result = state.b;
}
}
)";
}
}

#endif //__MODULAR_CONTRACT_TEMPLATE_HPP__
#endif //__MODULAR_CONTRACT_TEMPLATE_HPP__

0 comments on commit 8968c79

Please sign in to comment.