diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-21 08:28:37 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | dcc439c2e3a756af75889ddf3b22146322d1d97d (patch) | |
tree | 6d52fb9d6f93ffcc8e811d137566ff7d6a57410e /packages | |
parent | a895dacd4e20238087245c274564f694c71f7f6e (diff) | |
download | dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.tar dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.tar.gz dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.tar.bz2 dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.tar.lz dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.tar.xz dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.tar.zst dexon-0x-contracts-dcc439c2e3a756af75889ddf3b22146322d1d97d.zip |
Ran prettier
Diffstat (limited to 'packages')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/address.ts | 2 | ||||
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/address.ts b/packages/utils/src/abi_encoder/evm_data_types/address.ts index aab5a0605..9ae22bd9c 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/address.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/address.ts @@ -13,7 +13,7 @@ export class Address extends PayloadDataType { private static readonly _SIZE_KNOWN_AT_COMPILE_TIME: boolean = true; private static readonly _ADDRESS_SIZE_IN_BYTES = 20; private static readonly _DECODED_ADDRESS_OFFSET_IN_BYTES = Constants.EVM_WORD_WIDTH_IN_BYTES - - Address._ADDRESS_SIZE_IN_BYTES; + Address._ADDRESS_SIZE_IN_BYTES; public static matchType(type: string): boolean { return type === 'address'; 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 77dde1333..9a2a99ec7 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 @@ -46,7 +46,7 @@ export class StaticBytes extends PayloadDataType { if (valueBuf.byteLength > this._width) { throw new Error( `Tried to assign ${value} (${ - valueBuf.byteLength + valueBuf.byteLength } bytes), which exceeds max bytes that can be stored in a ${this.getSignature()}`, ); } else if (value.length % 2 !== 0) { |