Skip to content

Commit

Permalink
Merge branch 'master' into refactor/ctx_add_instruction_and_friends
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Dec 8, 2023
2 parents cefe061 + 21a47b6 commit b8ae7bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/functional/codegen/integration/test_crowdfund.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ def refund():
"""
a0, a1, a2, a3, a4, a5, a6 = w3.eth.accounts[:7]

c = get_contract_with_gas_estimation_for_constants(crowdfund, *[a1, 50, 60])
start_timestamp = w3.eth.get_block(w3.eth.block_number).timestamp

c.participate(transact={"value": 5})
assert c.timelimit() == 60
assert c.deadline() - c.block_timestamp() == 59
assert c.deadline() - start_timestamp == 60
assert not c.expired()
assert not c.reached()
c.participate(transact={"value": 49})
Expand Down

0 comments on commit b8ae7bf

Please sign in to comment.