Skip to content

Commit

Permalink
api: do not throw on VM FAULT in calculate_system_fee() (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje authored Oct 25, 2023
1 parent f5db568 commit ca55ebc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions neo3/api/helpers/txbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca55ebc

Please sign in to comment.