Skip to content

Commit

Permalink
fix: remove await in onMined block
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Dec 9, 2024
1 parent cdac014 commit 3d82cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/drift-viem/src/ViemReadWriteAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ViemReadWriteAdapter<
const hash = await this.walletClient.writeContract(writeParams);

if (params.onMined) {
await this.waitForTransaction({ hash }).then(params.onMined);
this.waitForTransaction({ hash }).then(params.onMined);
}

return hash;
Expand Down

0 comments on commit 3d82cfc

Please sign in to comment.