Skip to content

Commit

Permalink
Merge pull request #28 from tenetxyz/expose-nonce-manager
Browse files Browse the repository at this point in the history
expose noncemanager
  • Loading branch information
curtischong authored Sep 19, 2023
2 parents 0bc0434 + c5f1632 commit e78bae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/src/createContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function createContract<
publicClient: publicClient as PublicClient,
address: walletClient.account.address,
});
contract.nonceManager = nonceManager;

// Replace write calls with our own proxy. Implemented ~the same as viem, but adds better handling of nonces (via queue + retries).
contract.write = new Proxy(
Expand Down

0 comments on commit e78bae7

Please sign in to comment.