From 7be9d19fffbd5f901c598d50fd7c53291e9b5c62 Mon Sep 17 00:00:00 2001 From: Illia Polosukhin Date: Tue, 31 Mar 2020 16:32:48 -0700 Subject: [PATCH] Set initialBalance to 100N in create_account (#298) * Set initialBalance to 100N in create_account After state staking update, 1N covers for 10kb. So 100N covers 1MB storage. * modify test_account_operations to account for new test balance Co-authored-by: Mike Purvis Co-authored-by: Jane Degtiareva --- commands/create-account.js | 4 ++-- test/test_account_operations.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/create-account.js b/commands/create-account.js index ca6f4fbb..4385fdc3 100644 --- a/commands/create-account.js +++ b/commands/create-account.js @@ -25,7 +25,7 @@ module.exports = { .option('initialBalance', { desc: 'Number of tokens to transfer to newly created account', type: 'string', - default: '0.1' + default: '100' }), handler: exitOnError(createAccount) }; @@ -47,4 +47,4 @@ async function createAccount(options) { await near.connection.signer.keyStore.setKey(options.networkId, options.accountId, keyPair); } console.log(`Account ${options.accountId} for network "${options.networkId}" was created.`); -} \ No newline at end of file +} diff --git a/test/test_account_operations.sh b/test/test_account_operations.sh index e24530a0..f1141e23 100755 --- a/test/test_account_operations.sh +++ b/test/test_account_operations.sh @@ -11,7 +11,7 @@ echo Create account echo Get account state RESULT=$(../bin/near state $testaccount | strip-ansi) echo $RESULT -EXPECTED=".+Account $testaccount.+amount:.+'100000000000000000000000'.+ " +EXPECTED=".+Account $testaccount.+amount:.+'100000000000000000000000000'.+ " if [[ ! "$RESULT" =~ $EXPECTED ]]; then echo FAILURE Unexpected output from near view exit 1