Skip to content

Commit

Permalink
Merge pull request #8 from wharfkit/using-new-rpc-method
Browse files Browse the repository at this point in the history
fix: using new antelope_getActivePublicKey RPC method
  • Loading branch information
aaroncox authored Dec 5, 2024
2 parents 987ae75 + 8e4d5f0 commit 84c1891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class WalletPluginMetaMask extends AbstractWalletPlugin implements Wallet
async retrievePublicKey(chainId: Checksum256Type): Promise<PublicKey> {
await this.initialize()
const result = (await this.invokeSnap({
method: 'antelope_getPublicKey',
method: 'antelope_getActivePublicKey',
params: {chainId: String(chainId)},
})) as string
return PublicKey.from(result)
Expand Down

0 comments on commit 84c1891

Please sign in to comment.