Replies: 1 comment
-
Simplest way seems to be class WaitWallet extends Wallet {
sendTransaction(transaction: Deferrable<TransactionRequest>): Promise<TransactionResponse> {
return this.sendTransaction(transaction).then((tx) => {
return this.provider.waitForTransaction(tx.hash).then((receipt) => {
return tx
})
})
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a
Wallet
with an attachedJsonRpcProvider
, how can I modify or extend the class to always.wait()
when sending a transaction, regardless of whether that is a regular call transaction or a contract deployment transaction from a factory?Beta Was this translation helpful? Give feedback.
All reactions