From 27c039d51c87fd8d645c59544a60cce4354a578b Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Tue, 1 Oct 2019 21:44:43 -0700 Subject: [PATCH] Fix deployment and configuration tests --- contracts/exchange/test/end-to-end/deployment.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/exchange/test/end-to-end/deployment.ts b/contracts/exchange/test/end-to-end/deployment.ts index e557adae3f..a2ca5d856c 100644 --- a/contracts/exchange/test/end-to-end/deployment.ts +++ b/contracts/exchange/test/end-to-end/deployment.ts @@ -126,6 +126,9 @@ blockchainTests('Deployment and Configuration End to End Tests', env => { readOnlyProxy.address, ); + // Authorize owner in the staking proxy. + await stakingProxy.addAuthorizedAddress.awaitTransactionSuccessAsync(owner); + // Deploy the asset proxy contracts. erc20Proxy = await ERC20ProxyContract.deployFrom0xArtifactAsync( assetProxyArtifacts.ERC20Proxy, @@ -417,8 +420,6 @@ blockchainTests('Deployment and Configuration End to End Tests', env => { // Transfer authorization of the staking system. We intentionally neglect // to add the asset-proxy owner as an authorized address in the asset proxies // as a security precaution. - await transferAuthorizationAndAssertSuccessAsync(readOnlyProxy); - await transferAuthorizationAndAssertSuccessAsync(staking); await transferAuthorizationAndAssertSuccessAsync(stakingProxy); });