wagmi-extended 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -108,6 +108,7 @@ await writeContractAsync({
108
108
 
109
109
  #### New `writeContractX` method
110
110
 
111
+ Use `writeContract` if you don't want simulation to happen
111
112
  Use `writeContractX` if you need control over the simulation step:
112
113
 
113
114
  ```ts
@@ -117,20 +118,17 @@ const { writeContractX, isPending, errorMessage } = useContractWriteX({
117
118
  })
118
119
 
119
120
  // simulate + send:
120
- await writeContractX(
121
- {
122
- address: "0xContractAddress",
123
- abi: MyContractAbi,
124
- functionName: "executeFunction",
125
- args: [
126
- /* ... */
127
- ],
128
- account: myAddress,
129
- chain: myChain,
130
- value: 0n,
131
- },
132
- /* disableSimulation? */ false
133
- )
121
+ await writeContractX({
122
+ address: "0xContractAddress",
123
+ abi: MyContractAbi,
124
+ functionName: "executeFunction",
125
+ args: [
126
+ /* ... */
127
+ ],
128
+ account: myAddress,
129
+ chain: myChain,
130
+ value: 0n,
131
+ })
134
132
 
135
133
  // send immediately without simulation:
136
134
  await writeContractX(params, /* disableSimulation= */ true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wagmi-extended",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "type": "module",
5
5
  "description": "A library providing extended hooks on top of Wagmi with additional hooks and features.",
6
6
  "main": "dist/index.cjs.js",