diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-28 07:32:50 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7 (patch) | |
tree | 0d58f3c42bf9e985086e8c7c329f3af62208ac28 /packages | |
parent | f479212410b238a7673983148f403b3a220083af (diff) | |
download | dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.tar dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.tar.gz dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.tar.bz2 dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.tar.lz dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.tar.xz dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.tar.zst dexon-sol-tools-e7bdf4717da9d1fd50cda3dba4e9549dfbc337f7.zip |
Fixed build error: was using `this` instead of class name to reference a static function that used to be an instance method.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/utils/src/abi_encoder/evm_data_types/dynamic_bytes.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils/src/abi_encoder/evm_data_types/dynamic_bytes.ts b/packages/utils/src/abi_encoder/evm_data_types/dynamic_bytes.ts index ad22c8c6e..fecd1db6b 100644 --- a/packages/utils/src/abi_encoder/evm_data_types/dynamic_bytes.ts +++ b/packages/utils/src/abi_encoder/evm_data_types/dynamic_bytes.ts @@ -42,7 +42,7 @@ export class DynamicBytes extends AbstractDataTypes.Blob { const lengthBuf = ethUtil.toBuffer(valueBuf.byteLength); const lengthBufPadded = ethUtil.setLengthLeft(lengthBuf, Constants.EVM_WORD_WIDTH_IN_BYTES); // 2/3 Construct the value - this._sanityCheckValue(value); + DynamicBytes._sanityCheckValue(value); const valueBufPadded = ethUtil.setLengthRight(valueBuf, bytesToStoreValuePadded); // 3/3 Combine length and value const encodedValue = Buffer.concat([lengthBufPadded, valueBufPadded]); |