Skip to content

Commit

Permalink
Update EIP-7002: Fix typos
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
deffrian authored Jan 19, 2024
1 parent d505875 commit 7eb97f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions EIPS/eip-7002.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 7eb97f3

Please sign in to comment.