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

Commit

Permalink
Addressing code review comments for adding public key param to create…
Browse files Browse the repository at this point in the history
…Account
  • Loading branch information
janedegtiareva committed Jul 25, 2019
1 parent 4741b9a commit c942019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
}
Expand Down

0 comments on commit c942019

Please sign in to comment.