get tests passing

This commit is contained in:
realbigsean
2024-07-15 15:37:34 -07:00
parent c48cd52a9d
commit c0fd66f5e9
9 changed files with 33 additions and 57 deletions

View File

@@ -548,8 +548,8 @@ impl<E: EthSpec> Eth1ChainBackend<E> for CachingEth1Backend<E> {
// [New in Electra:EIP6110]
let deposit_index_limit =
if let Ok(deposit_receipts_start_index) = state.deposit_requests_start_index() {
std::cmp::min(deposit_count, deposit_receipts_start_index)
if let Ok(deposit_requests_start_index) = state.deposit_requests_start_index() {
std::cmp::min(deposit_count, deposit_requests_start_index)
} else {
deposit_count
};