Skip to content

Commit

Permalink
fix: skip chain assertion in useWriteContract - fixes #88
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Dec 9, 2023
1 parent cfe2005 commit 4639514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useWriteContract.ts
Expand Up @@ -16,7 +16,7 @@ export function useWriteContract<

return useMutation({
mutationFn(args: UseWriteContractParameters<TAbi, TFunctionName>) {
return client.writeContract(args as any)
return client.writeContract({ ...args, chain: null } as any)
},
})
}

0 comments on commit 4639514

Please sign in to comment.