Skip to content

Commit

Permalink
accept wrong difficulty and nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix committed Feb 10, 2025
1 parent a10b4e0 commit d39554c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cairo/tests/ethereum/cancun/test_fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def headers(draw):
parent_header = draw(
st.builds(
Header,
difficulty=st.just(0).map(Uint),
nonce=st.just(int(0).to_bytes(8, "big")).map(Bytes8),
difficulty=st.from_type(Uint),
nonce=st.from_type(Bytes8),
ommers_hash=st.just(OMMER_HASH).map(Hash32),
gas_limit=st.integers(min_value=21_000, max_value=2**32 - 1).map(Uint),
gas_used=st.integers(min_value=0, max_value=2**32 - 1).map(Uint),
Expand Down Expand Up @@ -160,9 +160,9 @@ def headers(draw):
),
),
extra_data=small_bytes,
difficulty=st.just(0).map(Uint),
difficulty=st.from_type(Uint),
ommers_hash=st.just(OMMER_HASH).map(Hash32),
nonce=st.just(int(0).to_bytes(8, "big")).map(Bytes8),
nonce=st.from_type(Bytes8),
number=st.one_of(
st.just(parent_header.number + Uint(1)),
uint,
Expand Down

0 comments on commit d39554c

Please sign in to comment.