Support 0x04040404 for supportsInterface function
Description
Would be great if we could support 0x04040404 as an identifier for DN404 contracts, so that the contract could automatically call setSkipNFT before transfer, etc.
Checklist
Ensure you completed all of the steps below before submitting your pull request:
- [x] Ran
forge fmt? - [x] Ran
forge snapshot? - [x] Ran
forge test?
Pull requests with an incomplete checklist will be thrown out.
Just try catch call setSkipNFT. Not a fan of 165, it can be spoofed.
Btw, all contracts are automatically whitelisted to skip NFTs.
@Vectorized Hmm would it be problematic if the token is sent before the contract deployment? https://despac1to.medium.com/carefully-use-openzeppelins-address-iscontract-msg-sender-4136cc6ff66d
edit ) seems like _ADDRESS_DATA_INITIALIZED_FLAG prevents it though.
🤔 Lemme marinate on this.