diff --git a/packages/extension/src/providers/kadena/methods/kda_requestAccounts.ts b/packages/extension/src/providers/kadena/methods/kda_requestAccounts.ts index 328116118..909a744b0 100644 --- a/packages/extension/src/providers/kadena/methods/kda_requestAccounts.ts +++ b/packages/extension/src/providers/kadena/methods/kda_requestAccounts.ts @@ -73,11 +73,13 @@ const method: MiddlewareFunction = function ( selectedNetwork: selectedNetworkName ? getNetworkInfo(selectedNetworkName) : null, - selectedAccountAddress: account?.address || "", + selectedAccountAddress: this.network.displayAddress( + account?.address || "" + ), accounts: accounts.map((acc) => { return { - address: acc.address, - publicKey: acc.publicKey, + address: this.network.displayAddress(acc.address), + publicKey: acc.publicKey.replace("0x", ""), genesisHash: "", name: acc.name, type: acc.signerType, diff --git a/packages/extension/src/providers/kadena/methods/kda_signTransaction.ts b/packages/extension/src/providers/kadena/methods/kda_signTransaction.ts index c18a545b8..17463ec77 100644 --- a/packages/extension/src/providers/kadena/methods/kda_signTransaction.ts +++ b/packages/extension/src/providers/kadena/methods/kda_signTransaction.ts @@ -17,7 +17,7 @@ const method: MiddlewareFunction = function ( const reqPayload = payload.params[0]; - this.KeyRing.getAccount(reqPayload.address) + this.KeyRing.getAccount(reqPayload.address.replace("k:", "0x")) .then((account) => { const windowPromise = new WindowPromise(); diff --git a/packages/extension/src/providers/kadena/ui/kda-sign-message.vue b/packages/extension/src/providers/kadena/ui/kda-sign-message.vue index 38374ae04..7c0ce94fa 100644 --- a/packages/extension/src/providers/kadena/ui/kda-sign-message.vue +++ b/packages/extension/src/providers/kadena/ui/kda-sign-message.vue @@ -47,6 +47,8 @@