From 18779102a055afea5fa314ebf86567226694588d Mon Sep 17 00:00:00 2001 From: Danny Delott Date: Wed, 13 Mar 2024 11:11:22 -0700 Subject: [PATCH 1/2] Add txHash to onTransactionMined --- packages/evm-client/src/contract/types/Contract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/evm-client/src/contract/types/Contract.ts b/packages/evm-client/src/contract/types/Contract.ts index d044d84..0d94c82 100644 --- a/packages/evm-client/src/contract/types/Contract.ts +++ b/packages/evm-client/src/contract/types/Contract.ts @@ -167,7 +167,7 @@ export interface ContractWriteOptions { /** * A callback for when the transaction has been mined. */ - onTransactionMined?(): void; + onTransactionMined?(hash: `0x${string}`): void; } export type ContractWriteArgs< From b59444eb6abeba126114d7c2523e4732ab0d7b87 Mon Sep 17 00:00:00 2001 From: Danny Delott Date: Wed, 13 Mar 2024 11:15:45 -0700 Subject: [PATCH 2/2] Update changeset --- .changeset/famous-deers-mate.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/famous-deers-mate.md diff --git a/.changeset/famous-deers-mate.md b/.changeset/famous-deers-mate.md new file mode 100644 index 0000000..7b23f4a --- /dev/null +++ b/.changeset/famous-deers-mate.md @@ -0,0 +1,5 @@ +--- +"@delvtech/evm-client": patch +--- + +Add txHash to onTransactionMined