Skip to content

Commit

Permalink
Fix simulateWrite on ReadWrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree committed Feb 13, 2024
1 parent 437c5a8 commit 7755087
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function createReadWriteContract<TAbi extends Abi = Abi>({
async simulateWrite(functionName, args, options) {
const [account] = await walletClient.getAddresses();

return super.simulateWrite(functionName, args, {
return readContract.simulateWrite(functionName, args, {
from: account,
...options,
});
Expand Down

0 comments on commit 7755087

Please sign in to comment.