Skip to content

Commit

Permalink
Extended tx_context with "blob base fee"
Browse files Browse the repository at this point in the history
Extended `tx_context` with the [EIP-7516](https://eips.ethereum.org/EIPS/eip-7516) "blob base fee" for the `BLOBBASEFEE` EVM instruction.
  • Loading branch information
chfast committed Sep 21, 2023
1 parent 4c12b57 commit e45979d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ and this project adheres to [Semantic Versioning].

### Added

- Extended `tx_context` with [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) blob hashes
- Extended `tx_context` with the [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) blob hashes
[#691](https://github.com/ethereum/evmc/pull/691)
- Extended `tx_context` with the [EIP-7516](https://eips.ethereum.org/EIPS/eip-7516) "blob base fee"
for the `BLOBBASEFEE` EVM instruction.
[#696](https://github.com/ethereum/evmc/pull/696)
- Added [EIP-1153](https://eips.ethereum.org/EIPS/eip-1153) transient storage support
[#693](https://github.com/ethereum/evmc/pull/693)

Expand Down
1 change: 1 addition & 0 deletions bindings/rust/evmc-vm/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ mod tests {
block_prev_randao: Uint256::default(),
chain_id: Uint256::default(),
block_base_fee: Uint256::default(),
blob_base_fee: Uint256::default(),
blob_hashes: std::ptr::null(),
blob_hashes_count: 0,
}
Expand Down
1 change: 1 addition & 0 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ struct evmc_tx_context
evmc_uint256be block_prev_randao; /**< The block previous RANDAO (EIP-4399). */
evmc_uint256be chain_id; /**< The blockchain's ChainID. */
evmc_uint256be block_base_fee; /**< The block base fee per gas (EIP-1559, EIP-3198). */
evmc_uint256be blob_base_fee; /**< The blob base fee (EIP-7516). */
const evmc_bytes32* blob_hashes; /**< The array of blob hashes (EIP-4844). */
size_t blob_hashes_count; /**< The number of blob hashes (EIP-4844). */
};
Expand Down

0 comments on commit e45979d

Please sign in to comment.