From 68f4c53828cec749e398864bcc6b0097c8d66c31 Mon Sep 17 00:00:00 2001 From: tersec Date: Sat, 14 Jan 2023 14:39:23 +0000 Subject: [PATCH] withdrawals amount in uint64 gwei: https://github.com/ethereum/execution-apis/pull/354 (#577) --- eth/common/eth_types.nim | 2 +- tests/rlp/test_common.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/common/eth_types.nim b/eth/common/eth_types.nim index d10c081..e0f7d7f 100644 --- a/eth/common/eth_types.nim +++ b/eth/common/eth_types.nim @@ -100,7 +100,7 @@ type index* : uint64 validatorIndex*: uint64 address* : EthAddress - amount* : UInt256 + amount* : uint64 BlockHeader* = object parentHash*: Hash256 diff --git a/tests/rlp/test_common.nim b/tests/rlp/test_common.nim index 7e27459..05ecf23 100644 --- a/tests/rlp/test_common.nim +++ b/tests/rlp/test_common.nim @@ -86,7 +86,7 @@ proc suite1() = address: EthAddress [ 0.byte, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], - amount: 4.u256 * 1_000_000_000.u256) + amount: 4) let abytes = rlp.encode(a) let aa = rlp.decode(abytes, Withdrawal)