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 => {