Skip to content

Commit

Permalink
4844: nit
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł Bylica <chfast@gmail.com>
  • Loading branch information
lightclient and chfast committed May 16, 2023
1 parent 06c92e5 commit 2d365e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-4844.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ The `ethereum/consensus-specs` repository defines the following beacon-node chan

### Opcode to get versioned hashes

We add an opcode `BLOBHASH` (with byte value `HASH_OPCODE_BYTE`) which reads `index` from the top of the stack
We add an instruction `BLOBHASH` (with opcode `HASH_OPCODE_BYTE`) which reads `index` from the top of the stack
as big-endian `uint256`, and replaces it on the stack with `tx.blob_versioned_hashes[index]`
if `index < len(tx.blob_versioned_hashes)`, and otherwise with a zeroed `bytes32` value.
The opcode has a gas cost of `HASH_OPCODE_GAS`.
Expand Down

0 comments on commit 2d365e1

Please sign in to comment.