注册并分享邀请链接,可获得视频播放与邀请奖励。

BuidlGuidl.eth
@buidlguidl
Building products, tools, and tutorials for the Ethereum ecosystem. 👉 👉
加入 November 2021
263 正在关注    6.9K 粉丝
Solidity error handling, by gas cost: • `require(cond, "msg")` — ~50 gas per byte in the message string • `revert SomeError(arg)` — ~22 gas per call + a 4-byte selector Etherscan decodes named errors with their args. require strings are just opaque bytes in the revert data.
显示更多