diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-21 06:18:01 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | a895dacd4e20238087245c274564f694c71f7f6e (patch) | |
tree | 086cd41fa7a63f53bd8548717d9a71d217e82ece /packages/utils/src/abi_encoder/evm_data_types/static_bytes.ts | |
parent | 5a748fb4e5ce9603cf100af5d46c323934ab17ad (diff) | |
download | dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.tar dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.tar.gz dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.tar.bz2 dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.tar.lz dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.tar.xz dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.tar.zst dexon-sol-tools-a895dacd4e20238087245c274564f694c71f7f6e.zip |
moved abi encoder constants into utils dir
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.ts | 4 |
1 files changed, 2 insertions, 2 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 4e49db609..77dde1333 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 @@ -4,7 +4,7 @@ import * as _ from 'lodash'; import { DataTypeFactory, PayloadDataType } from '../abstract_data_types'; import { RawCalldata } from '../calldata'; -import * as Constants from '../constants'; +import * as Constants from '../utils/constants'; export class StaticBytes extends PayloadDataType { private static readonly _SIZE_KNOWN_AT_COMPILE_TIME: boolean = true; @@ -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) { |