Skip to content

Commit

Permalink
Added status check after making transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaven committed Jul 1, 2024
1 parent e8c18c8 commit 428c053
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PyEthHelper/EthContractHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ def _DoTransaction(
)
))

if receipt.status == 0:
raise RuntimeError('Transaction failed')

return receipt


Expand Down

0 comments on commit 428c053

Please sign in to comment.