cosmos-sdk/x/genutil/client/cli
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
..
collect.go Use encoding/json for genesis (#7037) 2020-08-15 08:52:33 +00:00
gentx_test.go replace testutil.NewTestCaseDir() with Go1.15's T.TempDir() (#7014) 2020-09-18 12:08:24 +01:00
gentx.go cli: convert coins to smallest unit registered (#7777) 2020-11-16 11:34:54 +00:00
init_test.go replace testutil.NewTestCaseDir() with Go1.15's T.TempDir() (#7014) 2020-09-18 12:08:24 +01:00
init.go Use encoding/json for genesis (#7037) 2020-08-15 08:52:33 +00:00
migrate_test.go replace testutil.NewTestCaseDir() with Go1.15's T.TempDir() (#7014) 2020-09-18 12:08:24 +01:00
migrate.go 0.39->0.40 CLI migrate command (#6839) 2020-10-05 21:28:14 +00:00
validate_genesis.go Make JSONMarshaler methods require proto.Message (#7054) 2020-08-26 09:39:38 +00:00