assert_execute_module_success

Documentation for eth_defi.safe.trace.assert_execute_module_success function.

assert_execute_module_success(web3, tx_hash, verbose=True)[source]

Assert that a Gnosis safe transaction succeeded.

  • Gnosis safe swallows any reverts

  • We need to extract Gnosis Safe logs from the tx receipt and check if they are successful

Raises

AssertionError – If the transaction failed

Parameters
  • web3 (web3.main.Web3) –

  • tx_hash (hexbytes.main.HexBytes) –