fix(rpc): return the correct withdrawal index field (#5253)

This commit is contained in:
Dan Cline
2023-10-31 12:32:42 -04:00
committed by GitHub
parent 824152ecd0
commit ac241928be

View File

@ -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,