Skip to content

Commit

Permalink
Merge pull request #2661 from ethereum/fix-gas-uint
Browse files Browse the repository at this point in the history
base_fee_per_gas to uint256
  • Loading branch information
djrtwo committed Oct 12, 2021
2 parents aa592b0 + e5bbbc5 commit da24034
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions specs/merge/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ class BeaconState(Container):

#### `ExecutionPayload`

*Note*: The `base_fee_per_gas` field is serialized in little-endian.

```python
class ExecutionPayload(Container):
# Execution block header fields
Expand All @@ -160,7 +158,7 @@ class ExecutionPayload(Container):
gas_used: uint64
timestamp: uint64
extra_data: ByteList[MAX_EXTRA_DATA_BYTES]
base_fee_per_gas: Bytes32 # base fee introduced in EIP-1559, little-endian serialized
base_fee_per_gas: uint256
# Extra payload fields
block_hash: Hash32 # Hash of execution block
transactions: List[Transaction, MAX_TRANSACTIONS_PER_PAYLOAD]
Expand All @@ -182,7 +180,7 @@ class ExecutionPayloadHeader(Container):
gas_used: uint64
timestamp: uint64
extra_data: ByteList[MAX_EXTRA_DATA_BYTES]
base_fee_per_gas: Bytes32
base_fee_per_gas: uint256
# Extra payload fields
block_hash: Hash32 # Hash of execution block
transactions_root: Root
Expand Down
2 changes: 1 addition & 1 deletion tests/core/pyspec/eth2spec/test/helpers/genesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_sample_genesis_execution_payload_header(spec,
random=eth1_block_hash,
block_number=0,
gas_limit=30000000,
base_fee_per_gas=spec.Bytes32('0x00ca9a3b00000000000000000000000000000000000000000000000000000000'),
base_fee_per_gas=1000000000,
block_hash=eth1_block_hash,
transactions_root=spec.Root(b'\x56' * 32),
)
Expand Down

0 comments on commit da24034

Please sign in to comment.