Apply suggestions from code review #1407

Co-Authored-By: David Núñez <david@nucypher.com>
pull/1407/head
Victoria 2019-12-13 11:32:19 +01:00 committed by vzotova
parent a473357eca
commit 9b5ef923cb
2 changed files with 2 additions and 2 deletions

View File

@ -483,7 +483,7 @@ class StakingEscrowDeployer(BaseContractDeployer, UpgradeableContractMixin, Owna
agency = StakingEscrowAgent
contract_name = agency.registry_contract_name
deployment_steps = ('contract_deployment', 'dispatcher_deployment', 'reward_transfer', 'initialize')
deployment_steps = ('contract_deployment', 'dispatcher_deployment', 'approve_reward_transfer', 'initialize')
_proxy_deployer = DispatcherDeployer
def __init__(self, test_mode: bool = False, *args, **kwargs):

View File

@ -1215,7 +1215,7 @@ contract StakingEscrow is Issuer {
/// @dev the `onlyWhileUpgrading` modifier works through a call to the parent `verifyState`
function verifyState(address _testTarget) public {
super.verifyState(_testTarget);
require(delegateGet(_testTarget, "isTestContract()") == 0 ? !isTestContract : isTestContract);
require((delegateGet(_testTarget, "isTestContract()") == 0) == !isTestContract);
require(uint16(delegateGet(_testTarget, "minWorkerPeriods()")) == minWorkerPeriods);
require(delegateGet(_testTarget, "minAllowableLockedTokens()") == minAllowableLockedTokens);
require(delegateGet(_testTarget, "maxAllowableLockedTokens()") == maxAllowableLockedTokens);