Skip to content

Commit

Permalink
fix tx type
Browse files Browse the repository at this point in the history
  • Loading branch information
djrtwo committed Feb 23, 2022
1 parent 2026103 commit e49f73c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions specs/capella/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ to validator withdrawals. Including:

## Constants

We define the following Python custom types for type hinting and readability:

| Name | SSZ equivalent | Description |
| - | - | - |
| `TransactionType` | `Bytes1` | an EIP-2718 type |

## Preset

### State list lengths
Expand All @@ -34,7 +40,7 @@ to validator withdrawals. Including:

| Name | Value | Description |
| - | - | - |
| `WITHDRAWAL_TX_TYPE` | `Bytes1(0x05)` | EIP-2718 TX Type |
| `TX_TYPE_WITHDRAWAL` | `TransactionType('0x05')` | EIP-2718 TX Type |
| `MAX_WITHDRAWAL_TRANSACTIONS_PER_PAYLOAD` | `uint64(2**4)` (= 16) | Maximum amount of withdrawal transactions allowed in each payload |

## Configuration
Expand Down Expand Up @@ -153,7 +159,7 @@ class ExecutionPayloadHeader(Container):

#### `WithdrawalTransaction`

New EIP-2718 transaction type, with the format being the single byte `WITHDRAWAL_TX_TYPE`
New EIP-2718 transaction type, with the format being the single byte `TX_TYPE_WITHDRAWAL`
followed by an SSZ encoding of the `WithdrawalTransaction` container comprising the transaction contents.

```python
Expand Down

0 comments on commit e49f73c

Please sign in to comment.