Skip to content

Commit

Permalink
fix method of getting keyset account
Browse files Browse the repository at this point in the history
  • Loading branch information
Takadenoshi committed Mar 25, 2024
1 parent cd161a9 commit 018a705
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/extension/src/providers/kadena/types/kda-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class KDAToken extends KDABaseToken {
network: KadenaNetwork
): Promise<ICommand> {
to = network.displayAddress(to);
const toKey = to.replace("k:", "");
const accountDetails = await this.getAccountDetails(to, network);
const api = (await network.api()) as KadenaAPI;
const chainID = await api.getChainId();
Expand All @@ -73,7 +72,7 @@ export class KDAToken extends KDABaseToken {
}
)
)
.addKeyset("ks", "keys-all", toKey)
.addKeyset("ks", "keys-all", keySetAccount)
.addSigner(from.publicKey.replace("0x", ""), (withCap: any) => [
withCap("coin.TRANSFER", network.displayAddress(from.address), to, {
decimal: amount,
Expand Down

0 comments on commit 018a705

Please sign in to comment.