Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1098 from near/generate-key-fix
Browse files Browse the repository at this point in the history
fix: implicit account shows correctly
  • Loading branch information
gagdiez authored Feb 20, 2024
2 parents aeffcf3 + 6a6e69f commit ba6c986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/credentials/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
};

function pKtoAccountId(publicKey) {
return decode(publicKey.replace('ed25519:', '')).toString('hex');
return Buffer.from(decode(publicKey.replace('ed25519:', ''))).toString('hex');
}

async function generateKey(options) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "near-cli",
"version": "4.0.4",
"version": "4.0.5",
"description": "Simple CLI for interacting with NEAR Protocol",
"engines": {
"node": ">= 16"
Expand Down

0 comments on commit ba6c986

Please sign in to comment.