註冊並分享邀請連結,可獲得影片播放與邀請獎勵。

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.
顯示更多