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

fix: implicit account shows correctly #1098

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading