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

Commit

Permalink
Set initialBalance to 100N in create_account (#298)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: Jane Degtiareva <[email protected]>
  • Loading branch information
3 people authored Mar 31, 2020
1 parent b90df97 commit 7be9d19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commands/create-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand All @@ -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.`);
}
}
2 changes: 1 addition & 1 deletion test/test_account_operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7be9d19

Please sign in to comment.