From 638694e5e84cb499372b1a47fd6db0ebcbdf70e6 Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 13 Mar 2019 18:33:27 +0100 Subject: [PATCH] Fabo/2217 limited to max precision (#2258) * limited to max precision * fixed displaying small numbers on staking transactions * fixed a test * fixed prettydecimal for whole number --- PENDING.md | 4 +++- .../renderer/components/common/TmFormMsg.vue | 5 ++-- .../components/governance/ModalDeposit.vue | 4 ++-- .../components/governance/ModalPropose.vue | 4 ++-- .../components/staking/DelegationModal.vue | 4 ++-- .../components/staking/UndelegationModal.vue | 4 ++-- .../transactions/LiStakeTransaction.vue | 2 +- .../renderer/components/wallet/SendModal.vue | 4 ++-- app/src/renderer/scripts/num.js | 24 ++++++++++++++++++- .../transactions/LiStakeTransaction.spec.js | 2 +- .../LiStakeTransaction.spec.js.snap | 8 +++---- test/unit/specs/scripts/num.spec.js | 8 +++++++ 12 files changed, 53 insertions(+), 20 deletions(-) diff --git a/PENDING.md b/PENDING.md index 598264e7e9..c0aa71afe5 100644 --- a/PENDING.md +++ b/PENDING.md @@ -8,4 +8,6 @@ - [\#1959](https://github.com/cosmos/voyager/issues/1959) display transactions on block page @fedekunze ### Changed -- Ignore changelog check on master @faboweb \ No newline at end of file + +- Ignore changelog check on master @faboweb +- [#\2217](https://github.com/cosmos/voyager/issues/2217) Limit inputs to max precision @faboweb \ No newline at end of file diff --git a/app/src/renderer/components/common/TmFormMsg.vue b/app/src/renderer/components/common/TmFormMsg.vue index 51082b440a..3a66882fba 100644 --- a/app/src/renderer/components/common/TmFormMsg.vue +++ b/app/src/renderer/components/common/TmFormMsg.vue @@ -7,6 +7,7 @@