From f653328931915c9b6dd5aaffcb57a9177cda7d71 Mon Sep 17 00:00:00 2001 From: Archit Date: Mon, 11 Sep 2023 20:11:56 +0800 Subject: [PATCH] make internal function public --- .../base-provider/src/baseProvider.ts | 10 +++++----- .../src/commonPrivateKeyProvider.ts | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/providers/base-provider/src/baseProvider.ts b/packages/providers/base-provider/src/baseProvider.ts index 4a9d7771f..c994ba110 100644 --- a/packages/providers/base-provider/src/baseProvider.ts +++ b/packages/providers/base-provider/src/baseProvider.ts @@ -114,11 +114,7 @@ export abstract class BaseProvider; abstract switchChain(params: { chainId: string }): Promise; diff --git a/packages/providers/base-provider/src/commonPrivateKeyProvider.ts b/packages/providers/base-provider/src/commonPrivateKeyProvider.ts index 16d00ba7e..584847515 100644 --- a/packages/providers/base-provider/src/commonPrivateKeyProvider.ts +++ b/packages/providers/base-provider/src/commonPrivateKeyProvider.ts @@ -57,6 +57,15 @@ export class CommonPrivateKeyProvider extends BaseProvider(provider); + } + } + public async switchChain(_: { chainId: string }): Promise { return Promise.resolve(); } @@ -69,15 +78,6 @@ export class CommonPrivateKeyProvider extends BaseProvider(provider); - } - } - private getPrivKeyMiddleware(privKey: string): JRPCMiddleware { const middleware = { getPrivatekey: async (): Promise => {