From e3d03d18c092fac96b6aea54c4b2834872e6ee53 Mon Sep 17 00:00:00 2001 From: Erik van den Brink <git@erikvandenbrink.com> Date: Fri, 27 Sep 2024 14:13:29 +0200 Subject: [PATCH] api: do not post process on VM exception in test_invoke --- neo3/api/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo3/api/wrappers.py b/neo3/api/wrappers.py index 8bf5d00..2c3e19c 100644 --- a/neo3/api/wrappers.py +++ b/neo3/api/wrappers.py @@ -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)