Skip to content

Commit

Permalink
Update EIP-7002: move ssz serialization into system call
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
lightclient authored Oct 14, 2024
1 parent a7fb226 commit e0d0c81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions EIPS/eip-7002.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Note that `amount` is returned by the contract little-endian, and must be encode

```python
request_type = WITHDRAWAL_REQUEST_TYPE
request_data = ssz.serialize(read_withdrawal_requests())
request_data = read_withdrawal_requests()
```

#### Withdrawal Request Contract
Expand Down Expand Up @@ -172,7 +172,7 @@ def read_withdrawal_requests():
reqs = dequeue_withdrawal_requests()
update_excess_withdrawal_requests()
reset_withdrawal_requests_count()
return reqs
return ssz.serialize(reqs)

###########
# Helpers #
Expand Down
4 changes: 2 additions & 2 deletions EIPS/eip-7251.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The [EIP-7685](./eip-7685.md) encoding of a consolidation request is as follows.

```python
request_type = CONSOLIDATION_REQUEST_TYPE
request_data = ssz.serialize(dequeue_consolidation_requests())
request_data = dequeue_consolidation_requests()
```

#### Consolidation request contract
Expand Down Expand Up @@ -162,7 +162,7 @@ def process_consolidation_requests():
reqs = dequeue_consolidation_requests()
update_excess_consolidation_requests()
reset_consolidation_requests_count()
return reqs
return ssz.serialize(reqs)

###########
# Helpers #
Expand Down

0 comments on commit e0d0c81

Please sign in to comment.