From f48c9b8a79880097ca1f9208c0daba7df5d685e6 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sun, 14 May 2023 14:23:49 +0800 Subject: [PATCH] update client --- src/libs/client.ts | 4 ++-- src/stores/useBlockchain.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/client.ts b/src/libs/client.ts index 391af7b3..d6ffe9f8 100644 --- a/src/libs/client.ts +++ b/src/libs/client.ts @@ -26,8 +26,8 @@ export class BaseRestClient { } export class CosmosRestClient extends BaseRestClient { - constructor(endpoint: string) { - super(endpoint, DEFAULT) + static newDefault(endpoint: string) { + return new CosmosRestClient(endpoint, DEFAULT) } // Auth Module async getAuthAccounts() { diff --git a/src/stores/useBlockchain.ts b/src/stores/useBlockchain.ts index 84f4bca0..9e11c3c8 100644 --- a/src/stores/useBlockchain.ts +++ b/src/stores/useBlockchain.ts @@ -44,8 +44,8 @@ export const useBlockchain = defineStore('blockchain', { // if(cointype === "60") { // return `m/44'/${cointype}` // } - // return `m/44'/${cointype}/0'/0/0` - return "connected-wallet" + return `m/44'/${cointype}/0'/0/0` + //return "connected-wallet" }, dashboard() { return useDashboard();