ProjectOpenSea / operator-filter-registry

MIT License
312 stars 89 forks source link

Gas optimization: don't check registry on mint #89

Closed iainnash closed 1 year ago

iainnash commented 1 year ago

This saves an external contract call and read on mint transactions which are quite common and never filtered by the operator filterer pattern.

This saves gas by preventing an external contract read / lookup during a mint.

operatorfilterer commented 1 year ago

Minting usually happens outside of transfer methods, which means that, if implemented according to the examples, minting will not normally invoke registry checks.