cosmos-sdk/simapp/simd/cmd
yihuang 54201d11e6
cli: convert coins to smallest unit registered (#7777)
* cli: convert coins to smallest unit registered

fixes: #7623

- test order of decimal operations
- support both int and decimal coins, truncate when normalizing to
  base unit

* Update types/coin_test.go

* Update types/coin_test.go

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Amaury <amaury.martiny@protonmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-11-16 11:34:54 +00:00
..
cmd_test.go Use encoding/json for genesis (#7037) 2020-08-15 08:52:33 +00:00
genaccounts_test.go replace testutil.NewTestCaseDir() with Go1.15's T.TempDir() (#7014) 2020-09-18 12:08:24 +01:00
genaccounts.go cli: convert coins to smallest unit registered (#7777) 2020-11-16 11:34:54 +00:00
root.go Add log_level CLI flag back (#7789) 2020-11-03 17:14:56 +00:00
testnet.go Replace tmcrypto.PubKey by our own cryptotypes.PubKey (#7419) 2020-11-09 16:01:43 +00:00