Skip to content

Commit

Permalink
api: do not post process on VM exception in test_invoke (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored Sep 27, 2024
1 parent 55e582c commit 013d92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo3/api/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async def _test_invoke(
"""
async with noderpc.NeoRpcClient(self.rpc_host) as client:
res = await client.invoke_script(f.script, signers)
if f.execution_processor is None or return_raw:
if f.execution_processor is None or return_raw or res.state != "HALT":
return res
return f.execution_processor(res, 0)

Expand Down

0 comments on commit 013d92c

Please sign in to comment.