Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

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

Conversation

iainnash
Copy link
Contributor

@iainnash iainnash commented Jan 27, 2023

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.

@iainnash iainnash changed the title Gas optimization: dont check registry on mint Gas optimization: don't check registry on mint Jan 27, 2023
@operatorfilterer
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants