Feature request: hoisted multicall #316
Replies: 2 comments 1 reply
-
|
If this is just a syntactic change, would the following format be cleaner for you with the current state of viem? const callShared = {...wagmiContract, functionName: 'ownerOf'}
const results = await publicClient.multicall({
contracts: nftIds.map(id => ({...callShared, args:[id]}))
}) |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Yea coming back to this later it feels not worth the typescript complexity ect. don’t agree with past self that this is useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature request is simply to support hoisting multicall options. Common use case is to be calling the same contract or same function.
For context this is how it works today:
How I propose it could work is providing options higher hoists that option such that it applies to all calls
Beta Was this translation helpful? Give feedback.
All reactions