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 5031728 commit 56e854c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/connectors/argentMobile/modal/starknet/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ export class StarknetAdapter
wallet_requestChainId: this.handleRequestChainId,
wallet_requestAccounts: this.handleRequestAccounts,
wallet_getPermissions: this.handleGetPermissions,
starknet_addInvokeTransaction: this.handleAddInvokeTransaction,
starknet_signTypedData: this.handleSignTypedData,
starknet_supportedSpecs: this.handleSupportedSpecs,
wallet_addInvokeTransaction: this.handleAddInvokeTransaction,
wallet_signTypedData: this.handleSignTypedData,
wallet_supportedSpecs: this.handleSupportedSpecs,
Expand Down Expand Up @@ -266,7 +269,7 @@ export class StarknetAdapter
const { calls } = params as AddInvokeTransactionParameters

return await this.requestWallet({
method: "wallet_requestAddInvokeTransaction",
method: "starknet_requestAddInvokeTransaction",
params: {
accountAddress: this.account.address,
executionRequest: {
Expand All @@ -286,7 +289,7 @@ export class StarknetAdapter
}

const response = (await this.requestWallet({
method: "wallet_signTypedData",
method: "starknet_signTypedData",
params: typedDataParams,
})) as { signature: string[] } | string[]

Expand All @@ -295,7 +298,7 @@ export class StarknetAdapter

private handleSupportedSpecs = async () => {
return await this.requestWallet({
method: "wallet_supportedSpecs",
method: "starknet_supportedSpecs",
params: {},
})
}
Expand Down

0 comments on commit 56e854c

Please sign in to comment.