3 ms·
nice, wondering how that conditional logic works. I've played with getImageUri() methods for some time. Maybe they actually setImageUri() within the transfer()
by vmception 4y ago
nice, wondering how that conditional logic works. I've played with getImageUri() methods for some time. Maybe they actually setImageUri() within the transfer() method and it checks the owner address for certain ABI characteristic of a smart contract versus an EOA (individual's address). or actually never needing to setImageUri() and just have that last check in getImageUri to serve different metadata based on the type of owner address.
thats hilarious.
- tshaddox 4y agoThe story is from this blog post: https://moxie.org/2022/01/07/web3-first-impressions.html https://moxie.org/2022/01/07/web3-first-impressions.html It's incredibly simple. The NFT points to a URL controlled by the author. The author configured the web server so that it would respond with different images "based on the IP or User Agent of the requester." There's nothing web3 or blockchain going on here, it's just a normal image URL where the web server responds differently for different requests. Kinda like image hosting services that would return a placeholder image if you tried to hotlink directly to the image URL.