Fix estimate_gas script: Adjudicator contract was already deployed.

pull/1029/head
David Núñez 2019-06-24 15:12:47 +02:00
parent b301f02372
commit b4790ce976
1 changed files with 0 additions and 7 deletions

View File

@ -636,13 +636,6 @@ def estimate_gas(analyzer: AnalyzeGas = None) -> None:
tx = staker_functions.confirmActivity().transact({'from': ursula1})
testerchain.wait_for_receipt(tx)
testerchain.time_travel(periods=1)
# Deploy adjudicator to estimate slashing method in StakingEscrow contract
adjudicator, _ = testerchain.deploy_contract(
'Adjudicator', staking_agent.contract.address, ALGORITHM_SHA256, MIN_ALLOWED_LOCKED - 1, 0, 2, 2
)
tx = staker_functions.setAdjudicator(adjudicator.address).transact()
testerchain.wait_for_receipt(tx)
adjudicator_functions = adjudicator.functions
#
# Slashing