@@ -274,7 +274,7 @@ def deploy_contract(name, args=None):
274274 )
275275 return contract , tx_hash
276276
277- mineinitparams = (
277+ mine_init_params = (
278278 1 , # difficulty
279279 mine_period , # targetMineBlocks
280280 2 , # targetSubmissions
@@ -299,7 +299,7 @@ def deploy_no_market():
299299 self .log .debug ("Mine deployed" )
300300
301301 mine_contract .functions .initialize (
302- flow_contract .address , dummy_reward_contract .address , mineinitparams
302+ flow_contract .address , dummy_reward_contract .address , mine_init_params
303303 ).transact (TX_PARAMS )
304304 self .log .debug ("Mine Initialized" )
305305
@@ -339,7 +339,7 @@ def deploy_with_market(lifetime_seconds):
339339 self .log .debug ("Flow deployed" )
340340
341341 mine_contract .functions .initialize (
342- flow_contract .address , reward_contract .address , mineinitparams
342+ flow_contract .address , reward_contract .address , mine_init_params
343343 ).transact (TX_PARAMS )
344344 self .log .debug ("Mine Initialized" )
345345
@@ -351,7 +351,7 @@ def deploy_with_market(lifetime_seconds):
351351 self .log .debug ("Market Initialized" )
352352
353353 reward_contract .functions .initialize (
354- market_contract .address , mine_contract .address
354+ market_contract .address , mine_contract .address , TX_PARAMS [ 'from' ]
355355 ).transact (TX_PARAMS )
356356 reward_contract .functions .setBaseReward (10 ** 18 ).transact (TX_PARAMS )
357357 self .log .debug ("Reward Initialized" )
0 commit comments