diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-21 05:56:37 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 5a748fb4e5ce9603cf100af5d46c323934ab17ad (patch) | |
tree | 2d9b1d5b3159933a622a8eef79dfa966e271a19b /packages/utils/src/abi_encoder | |
parent | fee67326adbbf745966803c935d5663c3ca7f52c (diff) | |
download | dexon-0x-contracts-5a748fb4e5ce9603cf100af5d46c323934ab17ad.tar.gz dexon-0x-contracts-5a748fb4e5ce9603cf100af5d46c323934ab17ad.tar.zst dexon-0x-contracts-5a748fb4e5ce9603cf100af5d46c323934ab17ad.zip |
Split ABI Encoder/Decoder tests into separate files
Diffstat (limited to 'packages/utils/src/abi_encoder')
-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 707e265f8..0107fdc50 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 90e872c78..4e49db609 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) { |