Skip to content

Commit

Permalink
receipe wagmiWithFeedback: update desc for step 2 passing args to wri…
Browse files Browse the repository at this point in the history
…teContractAsync
  • Loading branch information
technophile-04 committed Apr 11, 2024
1 parent 423dfc6 commit d0c172a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/recipes/WagmiContractWriteWithFeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const ContractInteraction = () => {

### Step 2: Configure wagmi's `useWriteContract` hook

Add wagmi's `useWriteContract` hook and configure it with the parameters: `abi`, `address`, `functionName`, `value`and `args`. Get the ABI and address of your smart contract from the DeployedContracts or you can grab it from ExternalContracts object, those will be used to set up the contract interaction.
Add wagmi's `useWriteContract` hook and configure `writeContractAsync` with the parameters: `abi`, `address`, `functionName`, `value` and `args`. Get the ABI and address of your smart contract from the DeployedContracts or you can grab it from ExternalContracts object, those will be used to set up the contract interaction.

```tsx
import * as React from "react";
Expand Down

0 comments on commit d0c172a

Please sign in to comment.