Skip to content

Commit 3024771

Browse files
Update compiled contract (#303)
1 parent a56876e commit 3024771

File tree

6 files changed

+255
-23
lines changed

6 files changed

+255
-23
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bea58429e436e4952ae69235d9079cfc4ac5f3b3
1+
30f0f921a80078e43d578c82b746677bcf06d786

storage-contracts-abis/FixedPriceFlow.json

Lines changed: 43 additions & 7 deletions
Large diffs are not rendered by default.

storage-contracts-abis/Flow.json

Lines changed: 43 additions & 7 deletions
Large diffs are not rendered by default.

storage-contracts-abis/PoraMine.json

Lines changed: 41 additions & 2 deletions
Large diffs are not rendered by default.

storage-contracts-abis/PoraMineTest.json

Lines changed: 123 additions & 2 deletions
Large diffs are not rendered by default.

tests/test_framework/blockchain_node.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)