@wagmi/core 1.0.5 → 1.0.6

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.
@@ -2143,6 +2143,7 @@ async function multicall({
2143
2143
  // src/actions/contracts/readContract.ts
2144
2144
  async function readContract({
2145
2145
  address,
2146
+ account,
2146
2147
  chainId,
2147
2148
  abi,
2148
2149
  args,
@@ -2154,6 +2155,7 @@ async function readContract({
2154
2155
  return publicClient.readContract({
2155
2156
  abi,
2156
2157
  address,
2158
+ account,
2157
2159
  functionName,
2158
2160
  args,
2159
2161
  blockNumber,
package/dist/index.d.ts CHANGED
@@ -298,7 +298,7 @@ type ReadContractConfig<TAbi extends Abi | readonly unknown[] = Abi, TFunctionNa
298
298
  chainId?: number;
299
299
  };
300
300
  type ReadContractResult<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = ReadContractReturnType<TAbi, TFunctionName>;
301
- declare function readContract<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ address, chainId, abi, args, functionName, blockNumber, blockTag, }: ReadContractConfig<TAbi, TFunctionName>): Promise<ReadContractResult<TAbi, TFunctionName>>;
301
+ declare function readContract<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ address, account, chainId, abi, args, functionName, blockNumber, blockTag, }: ReadContractConfig<TAbi, TFunctionName>): Promise<ReadContractResult<TAbi, TFunctionName>>;
302
302
 
303
303
  type ReadContractsConfig<TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true> = Omit<MulticallConfig<TContracts, TAllowFailure>, 'contracts' | 'chainId'> & {
304
304
  /** Contracts to query */
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ import {
58
58
  watchWalletClient,
59
59
  watchWebSocketPublicClient,
60
60
  writeContract
61
- } from "./chunk-NRSD7F2O.js";
61
+ } from "./chunk-BMHDSNLV.js";
62
62
  import {
63
63
  mainnet,
64
64
  sepolia
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getCallParameters,
3
3
  getSendTransactionParameters
4
- } from "../chunk-NRSD7F2O.js";
4
+ } from "../chunk-BMHDSNLV.js";
5
5
  import "../chunk-BVC4KGLQ.js";
6
6
  import "../chunk-MQXBDTVK.js";
7
7
  export {
@@ -1,5 +1,5 @@
1
1
  import "../chunk-KX4UEHS5.js";
2
- import "../chunk-NRSD7F2O.js";
2
+ import "../chunk-BMHDSNLV.js";
3
3
  import {
4
4
  foundry,
5
5
  goerli,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/core",
3
3
  "description": "Vanilla JS library for Ethereum",
4
4
  "license": "MIT",
5
- "version": "1.0.5",
5
+ "version": "1.0.6",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/wagmi-dev/wagmi.git",
@@ -111,7 +111,7 @@
111
111
  "/dist"
112
112
  ],
113
113
  "peerDependencies": {
114
- "viem": "~0.3.18",
114
+ "viem": "~0.3.35",
115
115
  "typescript": ">=4.9.4"
116
116
  },
117
117
  "peerDependenciesMeta": {
@@ -123,11 +123,11 @@
123
123
  "abitype": "0.8.1",
124
124
  "eventemitter3": "^4.0.7",
125
125
  "zustand": "^4.3.1",
126
- "@wagmi/chains": "0.2.23",
127
- "@wagmi/connectors": "1.0.3"
126
+ "@wagmi/chains": "0.2.25",
127
+ "@wagmi/connectors": "1.0.5"
128
128
  },
129
129
  "devDependencies": {
130
- "viem": "~0.3.18"
130
+ "viem": "~0.3.35"
131
131
  },
132
132
  "keywords": [
133
133
  "eth",