Skip to content

Commit

Permalink
skip callFrom for registterDelegationWithSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed Mar 27, 2024
1 parent 31272a1 commit 4473d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/world/ts/actions/callFrom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function callFrom<TChain extends Chain, TAccount extends Account>(
// Applies to: `client.writeContract`, `getContract(client, ...).write`
writeContract: async (writeArgs): Promise<WriteContractReturnType> => {
// Skip if the contract isn't the World.
if (writeArgs.address !== params.worldAddress) {
if (writeArgs.address !== params.worldAddress || writeArgs.functionName === "registerDelegationWithSignature") {
return getAction(client, writeContract, "writeContract")(writeArgs);
}

Expand Down

0 comments on commit 4473d30

Please sign in to comment.