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

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Jan 23, 2024
1 parent 1d8b6c7 commit 2990bf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/near-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ yargs // eslint-disable-line
.command(require('../commands/transactions/status'))
.command(require('../commands/contract/view'))
.command(require('../commands/deprecated'))
.option('verbose', { desc: 'Prints out verbose output', type: 'boolean', default: false })
.option('verbose', { alias: ['v'], desc: 'Prints out verbose output', type: 'boolean', default: false })
.showHelpOnFail(true)
.recommendCommands()
.demandCommand(1, chalk`Pass {bold --help} to see all available commands and options.`)
Expand Down
3 changes: 1 addition & 2 deletions commands/account/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const inspectResponse = require('../../utils/inspect-response');
const { assertCredentials, storeCredentials } = require('../../utils/credentials');
const { DEFAULT_NETWORK } = require('../../config');
const chalk = require('chalk');
const { BN } = require('bn.js');

module.exports = {
command: 'create-account <new-account-id>',
Expand Down Expand Up @@ -97,7 +96,7 @@ async function create(options) {
throw new Error(`Account ${options.useAccount} does not exist in ${options.networkId}. Are you using the right network?`);
}

const initialBalance = new BN(utils.format.parseNearAmount(options.initialBalance));
const initialBalance = utils.format.parseNearAmount(options.initialBalance);

const split = newAccountId.split('.');
const isSubAccount = newAccountId.endsWith(options.useAccount);
Expand Down
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function getConfig(env) {
default:
throw Error(`Unconfigured environment '${env}'. Can be configured in src/config.js.`);
}
config['initialBalance'] = '1' + '0'.repeat(24);
return config;
}

Expand Down

0 comments on commit 2990bf0

Please sign in to comment.