aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/test
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-12-05 07:44:46 +0800
committerAmir Bandeali <abandeali1@gmail.com>2019-01-08 02:31:11 +0800
commiteeb07d76fc81b786d83c4ab848cc538e5896e240 (patch)
treec13339e9b59fb8cf01d94be545d31fd67206633b /packages/order-utils/test
parent0abace337c8309b22092519091d10e3474095878 (diff)
downloaddexon-0x-contracts-eeb07d76fc81b786d83c4ab848cc538e5896e240.tar.gz
dexon-0x-contracts-eeb07d76fc81b786d83c4ab848cc538e5896e240.tar.zst
dexon-0x-contracts-eeb07d76fc81b786d83c4ab848cc538e5896e240.zip
Fix transferFrom to work with MAP
Diffstat (limited to 'packages/order-utils/test')
-rw-r--r--packages/order-utils/test/asset_data_utils_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-utils/test/asset_data_utils_test.ts b/packages/order-utils/test/asset_data_utils_test.ts
index a070aaf16..6835b6e30 100644
--- a/packages/order-utils/test/asset_data_utils_test.ts
+++ b/packages/order-utils/test/asset_data_utils_test.ts
@@ -50,14 +50,14 @@ describe('assetDataUtils', () => {
expect(decodedAssetData.assetProxyId).to.equal(AssetProxyId.ERC721);
expect(decodedAssetData.tokenId).to.be.bignumber.equal(KNOWN_ERC721_ENCODING.tokenId);
});
- it('should encode ERC20 and ERC721', () => {
+ it('should encode ERC20 and ERC721 multiAssetData', () => {
const assetData = assetDataUtils.encodeMultiAssetData(
KNOWN_MULTI_ASSET_ENCODING.amounts,
KNOWN_MULTI_ASSET_ENCODING.nestedAssetData,
);
expect(assetData).to.equal(KNOWN_MULTI_ASSET_ENCODING.assetData);
});
- it('should decode ERC20 and ERC21', () => {
+ it('should decode ERC20 and ERC721 multiAssetData', () => {
const decodedAssetData = assetDataUtils.decodeMultiAssetData(KNOWN_MULTI_ASSET_ENCODING.assetData);
expect(decodedAssetData.assetProxyId).to.equal(AssetProxyId.MultiAsset);
expect(decodedAssetData.amounts).to.deep.equal(KNOWN_MULTI_ASSET_ENCODING.amounts);