Skip to content

Commit

Permalink
fix: logic for mobile connector
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecco committed Jul 3, 2024
1 parent a8c417c commit 5031728
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/connectors/argentMobile/modal/starknet/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 5031728

Please sign in to comment.