Skip to content

Commit

Permalink
7702: write checks in python instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Aug 30, 2024
1 parent 6ac865b commit 303e4c8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions EIPS/eip-7702.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ The fields `chain_id`, `nonce`, `max_priority_fee_per_gas`, `max_fee_per_gas`, `

The `authorization_list` is a list of tuples that store the address to code which the signer desires to execute in the context of their EOA. The transaction is considered invalid if the length of `authorization_list` is zero.

The transaction is also considered invalid when any integer field in an
authorization list cannot fit within the following bounds:

* `chain_id`: `2**256-1`
* `nonce`:`2**64-1`.
* `y_parity`: `2**256-1`.
* `r`: `2**256-1`.
* `s`: `2**256-1`.
The transaction is also considered invalid when any field in an authorization
tuple cannot fit within the following bounds:

```python
assert auth.chain_id < 2**256
assert auth.nonce < 2**64
assert len(auth.address) == 20
assert auth.y_parity < 2**256
assert auth.r < 2**256
assert auth.z < 2**256
```

The [EIP-2718](./eip-2718.md) `ReceiptPayload` for this transaction is `rlp([status, cumulative_transaction_gas_used, logs_bloom, logs])`.

Expand Down

0 comments on commit 303e4c8

Please sign in to comment.