From e49f73c9a4353bcc77bbc9753bdc2fff4ab1781f Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 23 Feb 2022 15:15:24 -0700 Subject: [PATCH] fix tx type --- specs/capella/beacon-chain.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/specs/capella/beacon-chain.md b/specs/capella/beacon-chain.md index 29094e5c7..d515cce4d 100644 --- a/specs/capella/beacon-chain.md +++ b/specs/capella/beacon-chain.md @@ -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 @@ -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 @@ -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