turns out eth_call supports an empty "to" address (i.e. contract creation) & runs the initcode provided as data, then returns the result. Seems useful for quickly executing arbitrary EVM code against the current chain state, without actually having to deploy on-chain getters.
要想合约写的好, Gas 优化少不了。
在以太坊中,Gas 优化是指重写 Solidity 代码,在实现相同的业务逻辑的情况下,在EVM中消耗更少的 gas 。
@decertme 最近翻译了 @RareSkills_io 编写的 Gas 优化手册,内容很全面,也许是中文里 gas 优化的最完整的资料。
访问地址:https://t.co/BlkcRig88I
I should own this tweet @lensprotocol#digitalroots sig:0x3106ed2e58b4ac68a585e6b75ac1821412f77f1000f306ffaf8822c82ea911381cef033c839f72cc2ba4b67a5bc6debc316df6cb1ae62e1e07aa5fc9d1c873e61c https://t.co/mjdjolzShg