diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-06-08 02:43:17 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-06-08 06:39:40 +0800 |
commit | 5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd (patch) | |
tree | 91756ef3a273709143ea0d8ef9bfedec731d17b7 /packages/order-utils/src | |
parent | f0200ab69722a7913671f3e59ab650da1e77d6ef (diff) | |
download | dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.tar dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.tar.gz dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.tar.bz2 dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.tar.lz dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.tar.xz dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.tar.zst dexon-sol-tools-5bb7219f4b8d5ce22169d5139bd1c07d7b2fcafd.zip |
Camelcase in memCopy
Diffstat (limited to 'packages/order-utils/src')
-rw-r--r-- | packages/order-utils/src/asset_proxy_utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-utils/src/asset_proxy_utils.ts b/packages/order-utils/src/asset_proxy_utils.ts index e2b377899..ee5fff1d2 100644 --- a/packages/order-utils/src/asset_proxy_utils.ts +++ b/packages/order-utils/src/asset_proxy_utils.ts @@ -5,7 +5,7 @@ import ethUtil = require('ethereumjs-util'); import * as _ from 'lodash'; const ERC20_ASSET_DATA_BYTE_LENGTH = 21; -const ERC721_ASSET_DATA_BYTE_LENGTH = 53; +const ERC721_ASSET_DATA_MINIMUM_BYTE_LENGTH = 53; const ASSET_DATA_ADDRESS_OFFSET = 0; const ERC721_ASSET_DATA_TOKEN_ID_OFFSET = 20; const ERC721_ASSET_DATA_RECEIVER_DATA_LENGTH_OFFSET = 52; @@ -96,7 +96,7 @@ export const assetProxyUtils = { }, decodeERC721AssetData(assetData: string): ERC721AssetData { const encodedAssetData = ethUtil.toBuffer(assetData); - if (encodedAssetData.byteLength < ERC721_ASSET_DATA_BYTE_LENGTH) { + if (encodedAssetData.byteLength < ERC721_ASSET_DATA_MINIMUM_BYTE_LENGTH) { throw new Error( `Could not decode ERC20 Proxy Data. Expected length of encoded data to be at least 53. Got ${ encodedAssetData.byteLength |