W3-1 Gas优化 Posted Mar 12, 2022 Updated Mar 17, 2025 By LL 1 min read W3-1 Gas优化 Contents W3-1 Gas优化 优化技巧删除不必要的库精确声明Solidity合约函数的可⻅性合并数据存储:多个⼩变量打包到单个槽中合约中没有引⽤的数据⽤事件避免⽆限制的循环使⽤代理进⾏⼤规模部署(复⽤实现合约)链下计算、链上验证(如:数组⽤链表实现)测试技巧:快进时间, 模拟出块相关文章Solidity 优化 - 控制 gas 成本 Develop, SmartContract defi ethereum okex learn solidity This post is licensed under CC BY 4.0 by the author. Share