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

could we use some expressions when put gas or amount of Near

Open marco-sundsk opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. When put Near amount in near-shell such as gas or attached near, we are always involve with many zeros. It is really tirable and fallible。

Describe the solution you'd like The better way is to support some mid-unit notation, like nanoNear, miliNear and etc. like 30 nanoNear.

Describe alternatives you've considered Also, we can support an math expression, like 30*10^14 when input amount of yachto Near.

Additional context this is an expected scenaro: near call pool.6fb1358 create_staking_pool '{"staking_pool_id":"xxxx", "owner_id":"yyyy", "stake_public_key":"ed25519:zzzzzz", "reward_fee_fraction": {"numerator": 10, "denominator": 100}}' --account_id yyyy --amount 30Near --gas 3*10^14

marco-sundsk avatar Jul 21 '20 01:07 marco-sundsk