From 8968c794018a6cf02bf7400b91c42fbb1e0f0d11 Mon Sep 17 00:00:00 2001 From: Vasiliy Olekhov Date: Sun, 5 Nov 2023 00:35:57 +0300 Subject: [PATCH] contract returs status #45 --- .../nil/blueprint/transpiler/templates/modular_verifier.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/nil/blueprint/transpiler/templates/modular_verifier.hpp b/include/nil/blueprint/transpiler/templates/modular_verifier.hpp index ef16102..8477f8c 100644 --- a/include/nil/blueprint/transpiler/templates/modular_verifier.hpp +++ b/include/nil/blueprint/transpiler/templates/modular_verifier.hpp @@ -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(); @@ -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__ \ No newline at end of file +#endif //__MODULAR_CONTRACT_TEMPLATE_HPP__