From 5031728953307c7b3fa107aab8a680bc4e84c108 Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 3 Jul 2024 12:20:40 +0200 Subject: [PATCH] fix: logic for mobile connector --- src/connectors/argentMobile/modal/starknet/adapter.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/connectors/argentMobile/modal/starknet/adapter.ts b/src/connectors/argentMobile/modal/starknet/adapter.ts index 2100db9..4643cd6 100644 --- a/src/connectors/argentMobile/modal/starknet/adapter.ts +++ b/src/connectors/argentMobile/modal/starknet/adapter.ts @@ -129,11 +129,11 @@ export class StarknetAdapter let type = call.type as string if ( - type === "starknet_addInvokeTransaction" || - type === "starknet_supportedSpecs" || - type === "starknet_signTypedData" + type === "wallet_addInvokeTransaction" || + type === "wallet_supportedSpecs" || + type === "wallet_signTypedData" ) { - type = type.replace("starknet_", "wallet_") as string + type = type.replace("wallet_", "starknet_") as string } const requestToCall = this.handleRequest[type]