communities-contracts/contracts
r4bbit 69e0e5eeaf
refactor: introduce custom errors for better gas costs (#3)
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.
2023-09-20 07:30:25 +02:00
..
factories feat: implement `CommunityTokenDeployer` contract (#2) 2023-09-19 11:39:55 +02:00
interfaces feat: implement `CommunityTokenDeployer` contract (#2) 2023-09-19 11:39:55 +02:00
tokens refactor: introduce custom errors for better gas costs (#3) 2023-09-20 07:30:25 +02:00
CommunityOwnerTokenRegistry.sol feat: implement `CommunityTokenDeployer` contract (#2) 2023-09-19 11:39:55 +02:00
CommunityTokenDeployer.sol feat: implement `CommunityTokenDeployer` contract (#2) 2023-09-19 11:39:55 +02:00