I'm building a Gnosis Safe app, and I'd like my react UI to respond to changes in the TransactionStatus of a transaction submitted via an ethers.js
contract function call. I see a way to get the Transaction
and thus the status from the transaction hash using sdk.txs.getBySafeTxHash
, but I do not see a way to get the hash from a contract call.
In particular, it would be nice to know when a user dismisses the transaction confirmation modal without submitting a signed transaction to the network, or when they reject the transaction in the wallet interface.