diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-26 13:40:37 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | ad1b5af4e59ba750c019cab1f5ec9584b8645101 (patch) | |
tree | 8d06b6ed215586320ede31867738d5bbdce60fc8 /packages/utils/src/abi_encoder/evm_data_types/int.ts | |
parent | feb551a02efe144b0aca4696f01dcdd42383fb36 (diff) | |
download | dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.gz dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.bz2 dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.lz dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.xz dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.zst dexon-0x-contracts-ad1b5af4e59ba750c019cab1f5ec9584b8645101.zip |
Ran prettier
Diffstat (limited to 'packages/utils/src/abi_encoder/evm_data_types/int.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/int.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/int.ts b/packages/utils/src/abi_encoder/evm_data_types/int.ts index 8a82ed4cc..032cd045a 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/int.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/int.ts @@ -24,9 +24,10 @@ export class Int extends AbstractDataTypes.Blob { private static _decodeWidthFromType(type: string): number { const matches = Int._MATCHER.exec(type); - const width = (matches !== null && matches.length === 2 && matches[1] !== undefined) - ? parseInt(matches[1], Constants.DEC_BASE) - : Int._DEFAULT_WIDTH; + const width = + matches !== null && matches.length === 2 && matches[1] !== undefined + ? parseInt(matches[1], Constants.DEC_BASE) + : Int._DEFAULT_WIDTH; return width; } |