Merge pull request #2359 from 0xProject/fix/migrations/verify-exchange-registration
Warn if Exchange contract not registered in StakingProxy
This commit is contained in:
commit
ed8340affa
@ -262,6 +262,9 @@ async function testContractConfigsAsync(provider: SupportedProvider): Promise<vo
|
|||||||
const stakingLogicAddress = await stakingProxy.stakingContract().callAsync();
|
const stakingLogicAddress = await stakingProxy.stakingContract().callAsync();
|
||||||
warnIfMismatch(stakingLogicAddress, addresses.staking, 'Unexpected Staking contract attached to StakingProxy');
|
warnIfMismatch(stakingLogicAddress, addresses.staking, 'Unexpected Staking contract attached to StakingProxy');
|
||||||
|
|
||||||
|
const isExchangeRegistered = await stakingContract.validExchanges(addresses.exchange).callAsync();
|
||||||
|
warnIfMismatch(isExchangeRegistered, true, 'Exchange not registered in StakingProxy');
|
||||||
|
|
||||||
const zrxVaultAddress = await stakingContract.getZrxVault().callAsync();
|
const zrxVaultAddress = await stakingContract.getZrxVault().callAsync();
|
||||||
warnIfMismatch(zrxVaultAddress, addresses.zrxVault, 'Unexpected ZrxVault set in StakingProxy');
|
warnIfMismatch(zrxVaultAddress, addresses.zrxVault, 'Unexpected ZrxVault set in StakingProxy');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user