From f1ca2bfa6663d77faa4220aa78bfcc9e360eba72 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Sun, 16 Sep 2018 01:53:22 -0500 Subject: [PATCH] revert --- frontend/client/utils/units.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/client/utils/units.ts b/frontend/client/utils/units.ts index 1641aeaa..935fcca7 100644 --- a/frontend/client/utils/units.ts +++ b/frontend/client/utils/units.ts @@ -38,7 +38,7 @@ export const Units = { gether: '1000000000000000000000000000', tether: '1000000000000000000000000000000', }; -const handleValues = (input: string | BN | number) => { +const handleValues = (input: string | BN) => { if (typeof input === 'string') { return input.startsWith('0x') ? new BN(stripHexPrefix(input), 16) : new BN(input); } @@ -58,7 +58,7 @@ const Data = (input: string) => toBuffer(addHexPrefix(input)); const Nonce = (input: string | BN) => handleValues(input); -const Wei = (input: string | BN | number): Wei => handleValues(input); +const Wei = (input: string | BN): Wei => handleValues(input); const TokenValue = (input: string | BN) => handleValues(input);