From 8e4d5f02c2f27b9c69642a14a81a78140d1abd45 Mon Sep 17 00:00:00 2001 From: dafuga Date: Wed, 4 Dec 2024 16:02:32 -0800 Subject: [PATCH] fix: using new antelope_getActivePublicKey rpc method --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8110042..fc1e899 100644 --- a/src/index.ts +++ b/src/index.ts @@ -112,7 +112,7 @@ export class WalletPluginMetaMask extends AbstractWalletPlugin implements Wallet async retrievePublicKey(chainId: Checksum256Type): Promise { await this.initialize() const result = (await this.invokeSnap({ - method: 'antelope_getPublicKey', + method: 'antelope_getActivePublicKey', params: {chainId: String(chainId)}, })) as string return PublicKey.from(result)