From 7755087857be8a24903d0e759eabf1404d80a0c8 Mon Sep 17 00:00:00 2001 From: Ryan Goree Date: Tue, 13 Feb 2024 15:45:39 -0600 Subject: [PATCH] Fix simulateWrite on ReadWrite --- .../evm-client-viem/src/contract/createReadWriteContract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/evm-client-viem/src/contract/createReadWriteContract.ts b/packages/evm-client-viem/src/contract/createReadWriteContract.ts index 053933d0..67b663b0 100644 --- a/packages/evm-client-viem/src/contract/createReadWriteContract.ts +++ b/packages/evm-client-viem/src/contract/createReadWriteContract.ts @@ -41,7 +41,7 @@ export function createReadWriteContract({ async simulateWrite(functionName, args, options) { const [account] = await walletClient.getAddresses(); - return super.simulateWrite(functionName, args, { + return readContract.simulateWrite(functionName, args, { from: account, ...options, });