diff --git a/src/lib/state/metamask.svelte.ts b/src/lib/state/metamask.svelte.ts index e645c923..912369a4 100644 --- a/src/lib/state/metamask.svelte.ts +++ b/src/lib/state/metamask.svelte.ts @@ -9,7 +9,8 @@ export class MetaMaskState { public isInstalled = $state(false); public error = $state(null); public installedSnap = $state(null); - public publicKey = $state(null); + public publicKey = $state(null); // active + public ownerKey = $state(null); // owner public snapsDetected = $derived(this.snapProvider !== null); diff --git a/src/routes/[network]/(homepage)/(wallets)/metamask/+page.svelte b/src/routes/[network]/(homepage)/(wallets)/metamask/+page.svelte index f0875233..eac31177 100644 --- a/src/routes/[network]/(homepage)/(wallets)/metamask/+page.svelte +++ b/src/routes/[network]/(homepage)/(wallets)/metamask/+page.svelte @@ -39,9 +39,10 @@ if (isInstalled) { connect(); accountCreationPluginMetamask - .retrievePublicKey(data.network.chain.id) + .retrievePublicKeys(data.network.chain.id) .then((publicKey) => { - metaMaskState.publicKey = publicKey; + metaMaskState.publicKey = publicKey.activePublicKey; + metaMaskState.ownerKey = publicKey.ownerPublicKey; }); } }); @@ -221,8 +222,18 @@ {/if} {#if context.settings.data.advancedMode} -

EOS Wallet Public Key

-

{metaMaskState.publicKey}

+

EOS Wallet Public Key (Active)

+

+ + {metaMaskState.publicKey} + +

+

EOS Wallet Public Key (Owner)

+

+ + {metaMaskState.ownerKey} + +

{/if} {/if}