Skip to content

Commit 6a26a04

Browse files
authored
fix(world): batchCall in sendUserOperationFrom (#3693)
1 parent 5f6c71d commit 6a26a04

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/khaki-bananas-travel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/world": patch
3+
---
4+
5+
Fixed a bug related to `batchCall` in `sendUserOperationFrom`.

packages/world/ts/actions/sendUserOperationFrom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function sendUserOperationFrom(
6565
// Wrap system calls from `batchCall` with delegator for a `batchCallFrom`
6666
// TODO: remove this specific workaround once https://github.com/latticexyz/mud/pull/3506 lands
6767
if (call.functionName === "batchCall") {
68-
const batchCallArgs = call.args as unknown as WriteContractParameters<worldCallAbi, "batchCall">;
68+
const batchCallArgs = call as unknown as WriteContractParameters<worldCallAbi, "batchCall">;
6969
const [systemCalls] = batchCallArgs.args;
7070
if (!systemCalls.length) {
7171
throw new Error("`batchCall` should have at least one system call.");

0 commit comments

Comments
 (0)