diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-18 17:32:01 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-18 17:32:01 +0800 |
commit | 25160d7344f9e1616654dfe09a24d8fc69fa8036 (patch) | |
tree | 2ec339700c0a1da1453671719e055692142c5efd /packages/contracts/test/asset_proxy | |
parent | 50ed7d2af26d6210f869352ed41084875d2af3d0 (diff) | |
download | dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.tar dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.tar.gz dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.tar.bz2 dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.tar.lz dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.tar.xz dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.tar.zst dexon-sol-tools-25160d7344f9e1616654dfe09a24d8fc69fa8036.zip |
Move encodeUint256 & decodeUint256 out of assetDataUtils since we don't want them exported
Diffstat (limited to 'packages/contracts/test/asset_proxy')
-rw-r--r-- | packages/contracts/test/asset_proxy/proxies.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/contracts/test/asset_proxy/proxies.ts b/packages/contracts/test/asset_proxy/proxies.ts index 42493bc3a..39674a030 100644 --- a/packages/contracts/test/asset_proxy/proxies.ts +++ b/packages/contracts/test/asset_proxy/proxies.ts @@ -23,6 +23,7 @@ import { constants } from '../utils/constants'; import { ERC20Wrapper } from '../utils/erc20_wrapper'; import { ERC721Wrapper } from '../utils/erc721_wrapper'; import { LogDecoder } from '../utils/log_decoder'; +import { typeEncodingUtils } from '../utils/type_encoding_utils'; import { provider, txDefaults, web3Wrapper } from '../utils/web3_wrapper'; chaiSetup.configure(); @@ -288,7 +289,7 @@ describe('Asset Transfer Proxies', () => { it('should call onERC721Received when transferring to a smart contract with receiver data', async () => { // Construct ERC721 asset data - const receiverData = ethUtil.bufferToHex(assetDataUtils.encodeUint256(generatePseudoRandomSalt())); + const receiverData = ethUtil.bufferToHex(typeEncodingUtils.encodeUint256(generatePseudoRandomSalt())); const encodedAssetData = assetDataUtils.encodeERC721AssetData( erc721Token.address, erc721MakerTokenId, @@ -327,7 +328,7 @@ describe('Asset Transfer Proxies', () => { it('should throw if there is receiver data but contract does not have onERC721Received', async () => { // Construct ERC721 asset data - const receiverData = ethUtil.bufferToHex(assetDataUtils.encodeUint256(generatePseudoRandomSalt())); + const receiverData = ethUtil.bufferToHex(typeEncodingUtils.encodeUint256(generatePseudoRandomSalt())); const encodedAssetData = assetDataUtils.encodeERC721AssetData( erc721Token.address, erc721MakerTokenId, |