Add check for if ERC20BridgeProxy is registered in the Exchange

This commit is contained in:
Amir Bandeali
2019-11-10 20:26:18 -08:00
parent ca7616c1d2
commit f003400135

View File

@@ -112,6 +112,13 @@ async function testContractConfigsAsync(provider: SupportedProvider): Promise<vo
'Unexpected StaticCallProxy registered in Exchange',
);
const registeredERC20BridgeProxy = await exchange.getAssetProxy.callAsync(AssetProxyId.ERC20Bridge);
warnIfMismatch(
registeredERC20BridgeProxy,
addresses.erc20BridgeProxy,
'Unexpected ERC20BridgeProxy registered in Exchange',
);
const protocolFeeCollector = await exchange.protocolFeeCollector.callAsync();
warnIfMismatch(protocolFeeCollector, addresses.stakingProxy, 'Unexpected StakingProxy attached to Exchange');