Skip to content

Commit

Permalink
fix: web3 browser signing
Browse files Browse the repository at this point in the history
  • Loading branch information
igroza committed Jan 13, 2025
1 parent 60fd8e8 commit b67c02d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/services/sign-json-rpc-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
getSignTypedDataParamsData,
isEthTypedData,
} from '@app/utils';
import {ETH_COIN_TYPE, TRON_COIN_TYPE} from '@app/variables/common';
import {EIP155_SIGNING_METHODS} from '@app/variables/EIP155';

import {Balance} from './balance';
Expand Down Expand Up @@ -106,8 +105,6 @@ export class SignJsonRpcRequest {
false,
provider,
);
Logger.log('Wallet Provider', instanceProvider.constructor.name);
Logger.log('Network Provider', JSON.stringify(provider, null, 2));

if (!instanceProvider) {
throw new Error(getText(I18N.jsonRpcErrorInvalidProvider));
Expand All @@ -117,7 +114,7 @@ export class SignJsonRpcRequest {
? await getRpcProvider(provider)
: getDefaultNetwork();

const path = wallet.path?.replace(TRON_COIN_TYPE, ETH_COIN_TYPE)!;
const path = Wallet.getById(wallet.address)?.getPath(provider)!;
let result: string | undefined;

switch (request.method) {
Expand Down

0 comments on commit b67c02d

Please sign in to comment.