-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add blobhash inside the tx
context: blobhash(uint index) --> tx.blobhash(uint index)
#14889
Comments
Hi @invocamanman, thanks for opening the issue, but similarly to |
Hey!^^ thanks for the answer :D The blockhash is not an opcode depending on the metadata/data of the current executing block, but a opcode that retrieve information from previous blocks of the blockchain. So i think it's accurate to put it outside the block context. ( It's true tho that the block number of the current block might depend the execution of this opcode, since only can retrieve the hash of the last 256, but since it's retrieving "other information" than the current executing block, i think it's more accurate the way it is and see the 256 as a limitation) The blobhash instead make reference only to the current executing transaction. And the |
Hi @invocamanman, while I agree with your point about including |
oki ^^ it makes sense Thanks for the answers ^^ |
Abstract / Motivation
The blob hash is an opcode that depends on the transaction, similar to the tx.origin or tx.gasprice. I think it's more consistent to access it inside the tx context
Specification
Blobhash opcode should be access in solidity like:
tx.blobhash(uint index) returns (bytes32)
Backwards Compatibility
An alias could be made to be backwards compatibility but i don't think it's necessary
The text was updated successfully, but these errors were encountered: