Skip to content

Commit

Permalink
fix(core): multicall passthrough properties (#3519)
Browse files Browse the repository at this point in the history
* fix: pass through multicall properties

* chore: changeset
  • Loading branch information
tmm authored Jan 25, 2024
1 parent ced620c commit 414eb04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-waves-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/core": patch
---

Fixed multicall passing through all properties to Viem method.
2 changes: 2 additions & 0 deletions packages/core/src/actions/readContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export async function readContracts<
multicall(config, {
...rest,
allowFailure,
blockNumber,
blockTag,
chainId: parseInt(chainId),
contracts: contracts.map(({ contract }) => contract),
}),
Expand Down

0 comments on commit 414eb04

Please sign in to comment.