Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(world): support batchCall in callFrom action #2796

Merged
merged 9 commits into from
Jan 29, 2025

Conversation

holic
Copy link
Member

@holic holic commented May 7, 2024

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

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

@holic
Copy link
Member Author

holic 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

@holic holic merged commit 56e65f6 into main Jan 29, 2025
17 checks passed
@holic holic 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
3 participants