aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-11-26 13:40:37 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-11-29 08:38:11 +0800
commitad1b5af4e59ba750c019cab1f5ec9584b8645101 (patch)
tree8d06b6ed215586320ede31867738d5bbdce60fc8 /packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts
parentfeb551a02efe144b0aca4696f01dcdd42383fb36 (diff)
downloaddexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar
dexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.gz
dexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.bz2
dexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.lz
dexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.xz
dexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.tar.zst
dexon-sol-tools-ad1b5af4e59ba750c019cab1f5ec9584b8645101.zip
Ran prettier
Diffstat (limited to 'packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts')
-rw-r--r--packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts b/packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts
index d0b41194e..2c649cb33 100644
--- a/packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts
+++ b/packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts
@@ -20,9 +20,10 @@ export class StaticBytes extends AbstractDataTypes.Blob {
private static _decodeWidthFromType(type: string): number {
const matches = StaticBytes._MATCHER.exec(type);
- const width = (matches !== null && matches.length === 3 && matches[2] !== undefined)
- ? parseInt(matches[2], Constants.DEC_BASE)
- : StaticBytes._DEFAULT_WIDTH;
+ const width =
+ matches !== null && matches.length === 3 && matches[2] !== undefined
+ ? parseInt(matches[2], Constants.DEC_BASE)
+ : StaticBytes._DEFAULT_WIDTH;
return width;
}