Skip to content

Commit

Permalink
pumb cosmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Nov 12, 2024
1 parent 0eff5db commit e9b44d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/keplr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getAddress, getAddressByEIP191 } from 'helper';
import { EIP_EIP_STORAGE_KEY_ACC, MetamaskOfflineSigner } from './eip191';

export default class Keplr extends CosmosWallet {
async createCosmosSigner(chainId: CosmosChainId): Promise<OfflineSigner> {
async createCosmosSigner(chainId: CosmosChainId): Promise<OfflineSigner | any> {
const keplr = await this.getKeplr();
if (keplr) return await keplr.getOfflineSignerAuto(chainId);
if (window.ethereum) return await MetamaskOfflineSigner.connect(window.ethereum, network.denom);
Expand Down

0 comments on commit e9b44d1

Please sign in to comment.