From ac241928befde1b5c6150a70fb4b5b3a69d5c7fc Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:32:42 -0400 Subject: [PATCH] fix(rpc): return the correct withdrawal index field (#5253) --- crates/rpc/rpc-types-compat/src/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc-types-compat/src/block.rs b/crates/rpc/rpc-types-compat/src/block.rs index 3a4fc86ae..570697dff 100644 --- a/crates/rpc/rpc-types-compat/src/block.rs +++ b/crates/rpc/rpc-types-compat/src/block.rs @@ -143,7 +143,7 @@ fn from_primitive_withdrawal( withdrawal: reth_primitives::Withdrawal, ) -> reth_rpc_types::Withdrawal { reth_rpc_types::Withdrawal { - index: withdrawal.validator_index, + index: withdrawal.index, address: withdrawal.address, validator_index: withdrawal.validator_index, amount: withdrawal.amount,