Skip to content

Commit

Permalink
fix(wallet-connect): be able to use personal_sign method
Browse files Browse the repository at this point in the history
  • Loading branch information
CedrikNikita committed Mar 4, 2025
1 parent 49628c6 commit d35f0a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/composables/walletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '@/constants';
import { tg } from '@/popup/plugins/i18n';

import { ETH_CHAIN_NAMESPACE } from '@/protocols/ethereum/config';
import { ETH_CHAIN_NAMESPACE, ETH_RPC_METHODS } from '@/protocols/ethereum/config';
import { EthRpcSupportedMethods, IEthNetworkSettings } from '@/protocols/ethereum/types';
import { handleEthereumRpcMethod } from '@/protocols/ethereum/libs/EthereumRpcMethodsHandler';

Expand Down Expand Up @@ -168,7 +168,9 @@ export function useWalletConnect({ offscreen } = { offscreen: false }) {
const { result, error } = await handleEthereumRpcMethod(
url,
proposal.request.method as EthRpcSupportedMethods,
proposal.request.params[0],
proposal.request.method === ETH_RPC_METHODS.signPersonal
? { data: proposal.request.params[0] }
: proposal.request.params[0],
name,
);

Expand Down

0 comments on commit d35f0a8

Please sign in to comment.