Add hard coded proxyId into each AssetProxy

This commit is contained in:
Amir Bandeali
2018-04-26 14:51:45 -07:00
parent 63ad2ebf0b
commit bbb3d5bb67
6 changed files with 76 additions and 5 deletions

View File

@@ -194,6 +194,18 @@ describe('AssetProxyDispatcher', () => {
),
).to.be.rejectedWith(constants.REVERT);
});
it('should throw if attempting to register a proxy to the incorrect id', async () => {
const prevProxyAddress = ZeroEx.NULL_ADDRESS;
return expect(
assetProxyDispatcher.registerAssetProxy.sendTransactionAsync(
AssetProxyId.ERC721,
erc20Proxy.address,
prevProxyAddress,
{ from: owner },
),
).to.be.rejectedWith(constants.REVERT);
});
});
describe('getAssetProxy', () => {