@@ -295,7 +295,7 @@ def deploy_no_market():
295295 dummy_reward_contract , _ = deploy_contract ("DummyReward" , [])
296296 self .log .debug ("DummyReward deployed" )
297297
298- flow_contract , _ = deploy_contract ("Flow" , [mine_period , 0 ])
298+ flow_contract , _ = deploy_contract ("Flow" , [0 ])
299299 self .log .debug ("Flow deployed" )
300300
301301 mine_contract , _ = deploy_contract ("PoraMineTest" , [0 ])
@@ -306,7 +306,7 @@ def deploy_no_market():
306306 mine_contract .functions .setTargetSubmissions (2 ).transact (TX_PARAMS )
307307 self .log .debug ("Mine Initialized" )
308308
309- flow_initialize_hash = flow_contract .functions .initialize (dummy_market_contract .address ).transact (TX_PARAMS )
309+ flow_initialize_hash = flow_contract .functions .initialize (dummy_market_contract .address , mine_period ).transact (TX_PARAMS )
310310 self .log .debug ("Flow Initialized" )
311311
312312 self .wait_for_transaction_receipt (w3 , flow_initialize_hash )
@@ -329,7 +329,7 @@ def deploy_with_market(lifetime_seconds):
329329 reward_contract , _ = deploy_contract ("ChunkLinearReward" , [lifetime_seconds ])
330330 self .log .debug ("Reward deployed" )
331331
332- flow_contract , _ = deploy_contract ("FixedPriceFlow" , [mine_period , 0 ])
332+ flow_contract , _ = deploy_contract ("FixedPriceFlow" , [0 ])
333333 self .log .debug ("Flow deployed" )
334334
335335 mine_contract .functions .initialize (1 , flow_contract .address , reward_contract .address ).transact (TX_PARAMS )
@@ -346,7 +346,7 @@ def deploy_with_market(lifetime_seconds):
346346 reward_contract .functions .setBaseReward (10 ** 18 ).transact (TX_PARAMS )
347347 self .log .debug ("Reward Initialized" )
348348
349- flow_initialize_hash = flow_contract .functions .initialize (market_contract .address ).transact (TX_PARAMS )
349+ flow_initialize_hash = flow_contract .functions .initialize (market_contract .address , mine_period ).transact (TX_PARAMS )
350350 self .log .debug ("Flow Initialized" )
351351
352352 self .wait_for_transaction_receipt (w3 , flow_initialize_hash )
0 commit comments