原创 最新推荐文章于 2026-02-12 16:30:30 发布 · 1.1k 阅读 合约里面常常需要记录一些状态数据,例如 Token 余额,合约 Owner 等等。那么这些状态是放在哪里呢?答案是:这些数据被放在变量里,我们 ...
Smart contract optimization is an art. Variable packing, minimal storage, assembly in hot paths, relying on IPFS—lots of tiny choices that add up to major savings 🧩🔥. Performance matters in Web3.
Just made my first open-source contribution to @HardhatHQ! Improved the HHE909 error message to better show incompatible files. Small step, but feels amazing to contribute to a tool I use every day!
函数是一组逻辑代码块,代表着合约可以进行的的某项操作或者行为。它是构建合约的基本组成单位之一。 例如一个借贷合约可能包括几个操作:提供款项(supply),借款(borrow),还款(repay ...