Comments (4)
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.
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.
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.
oki ^^ it makes sense
Thanks for the answers ^^
from solidity.
Related Issues (20)
- SMTChecker: Z3 in CHC engine incorrectly determines assertion as safe, when it should report possible violation
- Unknown EVM memory space while function returns a memory array. HOT 1
- Public function is not visible outside of the contract. HOT 4
- Adjust documentation webpage layout to be compatible with RTD addons HOT 2
- smart contracts need to process AI related processing on chain and also on contract
- Signed int256 addition optimization HOT 1
- No Documentation Available for compiling from source on ARM machine HOT 1
- Poor optimization of `call` and `staticcall` with `--via-ir` HOT 3
- Stack too deep compiler error when no variable are pushed to the stack.
- `Assembly exception for bytecode` occurs when code contains immutable state variables
- Unclear documentation for bytes encoding HOT 2
- SMT logic error: sorts are incompatible HOT 2
- Refine and Stabilize EOF Support
- FundsFreeze.sol
- White error output is invisible on white terminals
- type().max min should work with user defined types that are mapped to scalar types
- User defined value type with operators and/or forward references or aliases for types in libraries
- for loop i=9;i>=0;i-- execution reverted: arithmetic underflow or overflow HOT 1
- ABICoderV2 causes execution reverted when decoder bytes to two-dimensional array
- Wrong Error Message for Out-of-Bounds Array Access HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solidity.