From c5f16323b15919106dece1294187f6412c17bb14 Mon Sep 17 00:00:00 2001 From: Curtis Chong Date: Tue, 19 Sep 2023 18:06:03 -0400 Subject: [PATCH] expose noncemanager --- packages/common/src/createContract.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/common/src/createContract.ts b/packages/common/src/createContract.ts index b88924fc19..9eeff85445 100644 --- a/packages/common/src/createContract.ts +++ b/packages/common/src/createContract.ts @@ -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(