Merge pull request #3213 from etan-status/ee-mockgwei

Use `Gwei` for `Withdrawal` amount in mock-EE
This commit is contained in:
Hsiao-Wei Wang 2023-01-17 23:00:35 +08:00 committed by GitHub
commit 0f2d25d919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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
@ -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])