Skip to content

Commit

Permalink
Merge pull request #3213 from etan-status/ee-mockgwei
Browse files Browse the repository at this point in the history
Use `Gwei` for `Withdrawal` amount in mock-EE
  • Loading branch information
hwwhww authored Jan 17, 2023
2 parents 04d8f28 + 52d978b commit 0f2d25d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/core/pyspec/eth2spec/test/helpers/execution_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def get_execution_payload_header(spec, execution_payload):
)
if is_post_capella(spec):
payload_header.withdrawals_root = spec.hash_tree_root(execution_payload.withdrawals)
if is_post_eip4844(spec):
payload_header.excess_data_gas = execution_payload.excess_data_gas
return payload_header


Expand Down Expand Up @@ -108,7 +110,7 @@ def get_withdrawal_rlp(spec, withdrawal):
# address
(Binary(20, 20), withdrawal.address),
# amount
(big_endian_int, spec.uint256(withdrawal.amount) * (10**9)),
(big_endian_int, withdrawal.amount),
]

sedes = List([schema for schema, _ in withdrawal_rlp])
Expand Down

0 comments on commit 0f2d25d

Please sign in to comment.