From 80222e384107dddc025062faebbb550f9522665b Mon Sep 17 00:00:00 2001 From: karooolis Date: Wed, 27 Mar 2024 18:09:07 +0000 Subject: [PATCH] skip callFrom for call & callFrom --- packages/world/ts/actions/callFrom.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/world/ts/actions/callFrom.ts b/packages/world/ts/actions/callFrom.ts index e6ff937fed..e01d3c64ff 100644 --- a/packages/world/ts/actions/callFrom.ts +++ b/packages/world/ts/actions/callFrom.ts @@ -57,7 +57,12 @@ export function callFrom( // Applies to: `client.writeContract`, `getContract(client, ...).write` writeContract: async (writeArgs): Promise => { // Skip if the contract isn't the World. - if (writeArgs.address !== params.worldAddress || writeArgs.functionName === "registerDelegationWithSignature") { + if ( + writeArgs.address !== params.worldAddress || + writeArgs.functionName === "call" || + writeArgs.functionName === "callFrom" || + writeArgs.functionName === "registerDelegationWithSignature" + ) { return getAction(client, writeContract, "writeContract")(writeArgs); }