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

View File

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