This commit is contained in:
Daniel Ternyak 2018-09-16 01:53:22 -05:00
parent 3862b18670
commit f1ca2bfa66
No known key found for this signature in database
GPG Key ID: DF212D2DC5D0E245
1 changed files with 2 additions and 2 deletions

View File

@ -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);