diff --git a/EIPS/eip-7002.md b/EIPS/eip-7002.md index d3249f63881b9..1ebc0631b856a 100644 --- a/EIPS/eip-7002.md +++ b/EIPS/eip-7002.md @@ -207,11 +207,10 @@ num_exits_to_dequeue = min(num_exits_in_queue, MAX_EXITS_PER_BLOCK) # Retrieve exits from the queue expected_exits = [] for i in range(num_exits_to_dequeue): - queue_storage_slot = EXIT_MESSAGE_QUEUE_STORAGE_OFFSET + (queue_head_index + i) * 2 - source_address = address(SLOAD(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot)[0:20] + queue_storage_slot = EXIT_MESSAGE_QUEUE_STORAGE_OFFSET + (queue_head_index + i) * 3 + source_address = address(sload(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot)[0:20]) validator_pubkey = ( - SLOAD(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot + 1) + SLOAD(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot + 1) - + SLOAD(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot + 1) + SLOAD(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot + 1)[0:16] + sload(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot + 1)[0:32] + sload(VALIDATOR_EXIT_PRECOMPILE_ADDRESS, queue_storage_slot + 2)[0:16] ) exit = ValidatorExit( source_address=Bytes20(source_address),