Giter Club home page Giter Club logo

Comments (4)

r0qs avatar r0qs commented on September 24, 2024 1

Hi @invocamanman, while I agree with your point about including blobhash as a member of tx, having these members of global magic variables (e.g. block, tx, etc) as global free functions would simplify the implementation of our planned Solidity standard library (refer to: #10282 for additional context). Therefore, we prefer to not introduce this feature now, as it would require breaking changes in the near future.

from solidity.

r0qs avatar r0qs commented on September 24, 2024

Hi @invocamanman, thanks for opening the issue, but similarly to block.blockhash() which was removed in Solidity version 0.5.0 in favor of the global free function blockhash() we prefer to keep blobhash() as free function as well.

from solidity.

invocamanman avatar invocamanman commented on September 24, 2024

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 index is referring to the blobs of the executing transaction as well.

from solidity.

invocamanman avatar invocamanman commented on September 24, 2024

oki ^^ it makes sense

Thanks for the answers ^^

from solidity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.