From 0c0419308004cb0f4b0c54b8ef5e29745acb21b7 Mon Sep 17 00:00:00 2001 From: Erik van den Brink Date: Wed, 25 Oct 2023 12:12:55 +0200 Subject: [PATCH] api: do not throw on VM FAULT in `calculate_system_fee()` --- neo3/api/helpers/txbuilder.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/neo3/api/helpers/txbuilder.py b/neo3/api/helpers/txbuilder.py index 2c7145d..f261959 100644 --- a/neo3/api/helpers/txbuilder.py +++ b/neo3/api/helpers/txbuilder.py @@ -45,8 +45,6 @@ async def calculate_system_fee(self) -> None: "fee calculation will be incorrect" ) res = await self.client.invoke_script(self.tx.script, self.tx.signers) - if res.state != "HALT": - raise ValueError(f"Failed to get system fee: {res.exception}") self.tx.system_fee = res.gas_consumed async def set_valid_until_block(self) -> None: