From 83ba67c701ecdcc2542e8680938c09b508f9e5c3 Mon Sep 17 00:00:00 2001 From: gagdiez Date: Tue, 20 Feb 2024 14:12:30 +0100 Subject: [PATCH 1/2] fix: implicit account shows correctly --- commands/credentials/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/credentials/generate.js b/commands/credentials/generate.js index e3d35b29..41e3f7b6 100644 --- a/commands/credentials/generate.js +++ b/commands/credentials/generate.js @@ -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) { From 6a6e69f021163c69a713d81e67443a68a21a79b3 Mon Sep 17 00:00:00 2001 From: gagdiez Date: Tue, 20 Feb 2024 14:17:30 +0100 Subject: [PATCH 2/2] Release 4.0.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 316b8da4..5268c70b 100644 --- a/package.json +++ b/package.json @@ -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"