Skip to content

Commit

Permalink
Add onTransactionMined callback (#50)
Browse files Browse the repository at this point in the history
* Add onTransactionMined callback

* Add changeset

* make optional

* Update changeset
  • Loading branch information
DannyDelott authored Mar 13, 2024
1 parent c4b2b22 commit 01ec0b1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/moody-actors-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@delvtech/evm-client": patch
---

Add onTransactionMined callback to ReadWriteContract
5 changes: 5 additions & 0 deletions .changeset/selfish-adults-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@delvtech/evm-client": patch
---

Make onTransactionMined optional
5 changes: 5 additions & 0 deletions packages/evm-client/src/contract/types/Contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ export interface ContractWriteOptions {
* Chain ID that this transaction is valid on.
*/
chainId?: bigint;

/**
* A callback for when the transaction has been mined.
*/
onTransactionMined?(): void;
}

export type ContractWriteArgs<
Expand Down

0 comments on commit 01ec0b1

Please sign in to comment.