You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does it ever make sense to use this contract over ERC165 with overrides and if statements?
The API is a little simpler because it's just a call to _registerInterface. The use of storage makes it more expensive to execute supportsInterface, and also to deploy the contract. Deployment costs are not necessarily worse though, because when storage is not used it requires more bytecode, but probably not enough to match it.
The text was updated successfully, but these errors were encountered:
Looking at the total amount of contracts using the ERC165 contract against the amount using the ERC165Storage inside the sanctuary with the following search criteria and results:
Does it ever make sense to use this contract over ERC165 with overrides and if statements?
The API is a little simpler because it's just a call to
_registerInterface
. The use of storage makes it more expensive to executesupportsInterface
, and also to deploy the contract. Deployment costs are not necessarily worse though, because when storage is not used it requires more bytecode, but probably not enough to match it.The text was updated successfully, but these errors were encountered: