Skip to content

Conversation

@frolic
Copy link
Member

@frolic frolic commented May 7, 2024

closes #2779 (couldn't push to their branch so re-opening here)
closes #1761
closes #1728

@changeset-bot
Copy link

changeset-bot bot commented May 7, 2024

🦋 Changeset detected

Latest commit: 3311e73

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@frolic
Copy link
Member Author

frolic commented Jan 24, 2025

@dhvanipa It looks like you're trying to do batchCall(callFrom) via batchCallFrom. I wonder if we could bypass batchCallFrom and use callFrom(batchCall) instead?

As in let the existing middleware swap the batchCall for a callFrom(batchCall). Would that work?

worldContract.write.batchCall([...])

Edit: this approach would need a contract change in #3506

@frolic frolic merged commit 56e65f6 into main Jan 29, 2025
17 checks passed
@frolic frolic deleted the holic/viem-batch-call-from branch January 29, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

encodeSystemCalls(From) should use batchCall(From) interface make batchCall easier to work with in the client

4 participants