69e0e5eeaf
This commit introduces custom errors for `BaseToken` and `CommunityERC20` to reduce the gas costs in revert cases. Using `require()` with a string error message requires every character of the message to be store in memory which costs more gas than a fixed sized error selector. Hence, it's recommended to use custom errors instead. A gas snapshot is attached in this commit to show the improved gas costs. |
||
---|---|---|
.. | ||
BaseToken.sol | ||
CollectibleV1.sol | ||
CommunityERC20.sol | ||
MasterToken.sol | ||
OwnerToken.sol |