Amount is Wei in EL world / Gwei in CL

This commit is contained in:
Etan Kissling 2022-11-24 15:10:25 +01:00
parent e9111a5168
commit bfc634dc8c
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def get_withdrawal_rlp(withdrawal):
# address # address
(Binary(20, 20), withdrawal.address), (Binary(20, 20), withdrawal.address),
# amount # amount
(big_endian_int, withdrawal.amount) (big_endian_int, withdrawal.amount * (10**9))
] ]
sedes = List([schema for schema, _ in withdrawal_rlp]) sedes = List([schema for schema, _ in withdrawal_rlp])