transmissions11/solmate

use custom error

Lopol2010 opened this issue · 1 comments

hey guys, why not use custom errors here? from what I know custom errors are more gas optimized.
Also I did very small test in remix, and results assert that custom errors use less gas:

error type deploy tx successful tx reverted tx
require() 192881 46087 49201
Custom error 164207 46087 48947

has been discussed quite a bit on this repo, im not ready to add custom errors yet, i find the syntax ugly 😅

#139