diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-01-09 08:57:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 08:57:59 +0800 |
commit | 7a56e83fa3ca02d796deba3359da480834a9f6ea (patch) | |
tree | 41cf689624c493d47f669421f63392cb36107915 /packages/connect/src/utils | |
parent | 35e0b6143ab1405259471e1c9c698bfcd869df5a (diff) | |
parent | a1c38d9cb2da75915248c7bad0d0e13523db389c (diff) | |
download | dexon-0x-contracts-7a56e83fa3ca02d796deba3359da480834a9f6ea.tar.gz dexon-0x-contracts-7a56e83fa3ca02d796deba3359da480834a9f6ea.tar.zst dexon-0x-contracts-7a56e83fa3ca02d796deba3359da480834a9f6ea.zip |
Merge pull request #296 from 0xProject/fix/mutatedInput
Prevent getFeesAsync method on HttpClient from mutating input
Diffstat (limited to 'packages/connect/src/utils')
-rw-r--r-- | packages/connect/src/utils/type_converters.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/packages/connect/src/utils/type_converters.ts b/packages/connect/src/utils/type_converters.ts index 31abdc95c..ccbc40677 100644 --- a/packages/connect/src/utils/type_converters.ts +++ b/packages/connect/src/utils/type_converters.ts @@ -18,11 +18,6 @@ export const typeConverters = { 'salt', ]); }, - convertBigNumberFieldsToStrings(obj: object, fields: string[]): void { - _.each(fields, field => { - _.update(obj, field, (value: BigNumber) => value.toString()); - }); - }, convertStringsFieldsToBigNumbers(obj: object, fields: string[]): void { _.each(fields, field => { _.update(obj, field, (value: string) => new BigNumber(value)); |