From c942019d087aa23684fbfab45d7ca85358000980 Mon Sep 17 00:00:00 2001 From: Evguenia degtiareva Date: Thu, 25 Jul 2019 16:32:39 -0700 Subject: [PATCH] Addressing code review comments for adding public key param to createAccount --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f053c326..88305ea0 100755 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ exports.createAccount = async function(options) { } await near.createAccount(options.accountId, publicKey); if (keyPair) { - near.connection.signer.keyStore.setKey(options.networkId, options.accountId, keyPair); + await near.connection.signer.keyStore.setKey(options.networkId, options.accountId, keyPair); } console.log(`Account ${options.accountId} for network "${options.networkId}" was created.`); }