Skip to content

Commit 041d1cc

Browse files
committed
Fix wrong comment about blobhash behavior
1 parent 96c8f38 commit 041d1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/libsolidity/semanticTests/inlineAssembly/blobhash_index_exceeding_blob_count.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
contract C {
22
function f() public view returns (bytes32 ret) {
33
assembly {
4-
// EIP-4844 specifies that if `index < len(tx.blob_versioned_hashes)`, `blobhash(index)` should return 0.
4+
// EIP-4844 specifies that if `index >= len(tx.blob_versioned_hashes)`, `blobhash(index)` should return 0.
55
// Thus, as we injected only two blob hashes in the transaction context in EVMHost,
66
// the return value of the function below MUST be zero.
77
ret := blobhash(2)

0 commit comments

Comments
 (0)