near-cli icon indicating copy to clipboard operation
near-cli copied to clipboard

create-account's default value for --initialBalance is extremely high

Open charleslavon opened this issue 1 year ago • 2 comments

initialBalance is an optional param of significant consequence when it is omitted, a consequence of 100N https://github.com/near/near-cli/blob/4b4a787d0eafaa97fb7c2c741cdfaacf2c53f35b/commands/create-account.js#L34-L38

Recommendation: initialBalance should be a required parameter

charleslavon avatar Jul 21 '22 16:07 charleslavon

Currently a lot of tests depend on this default, which while not the reason to keep it, is the reason it hasn't changed.

See https://github.com/near/near-cli/pull/991

willemneal avatar Jul 21 '22 16:07 willemneal

I want to mention that there is a similar issue #238

frol avatar Jul 21 '22 17:07 frol