Chonks
Chonks is a pfp project, customizable with swappable traits, fully onchain on Base. Created by @backseats and @marka
mike@sylphdapps.eth 🌎💻 pfp
0 reply
0 recast
1 reaction

Backseats pfp
0 reply
0 recast
1 reaction

Backseats pfp
0 reply
2 recasts
7 reactions

mike@sylphdapps.eth 🌎💻 pfp
1 reply
0 recast
3 reactions

Backseats pfp
3 replies
2 recasts
7 reactions

mike@sylphdapps.eth 🌎💻 pfp
0 reply
0 recast
2 reactions

Backseats pfp
3 replies
1 recast
16 reactions

Backseats pfp
1 reply
1 recast
6 reactions

Backseats pfp
0 reply
0 recast
3 reactions

Backseats pfp
Quick Smart Contract Review: ChonkMakeover.sol I've always loved the `onERC721Received` function, especially for making a change and immediately returning the token to the sender. It's simple, elegant, and punches above its weight. In this case, we're using it because in ChonksMain.chonkMakeover, I decided forever ago that you couldn't unequip a Trait in there (by setting its value to 0); you could only override a Trait with another new Trait ID value. Oops. Instead we have the user send their Chonk to the ChonksMakeover contract which takes some encoded data so it knows what to do, does the unequip, then the it does the chonkMakeover because the contract itself is temporarily the owner and you have to own the Chonk to put on and take off Traits. This all happens quietly to the user after a single transaction signature and it's all displayed in your Chonk's Activity
0 reply
0 recast
1 reaction

Backseats pfp
1 reply
2 recasts
18 reactions

Backseats pfp
0 reply
2 recasts
11 reactions

Backseats pfp
0 reply
0 recast
2 reactions

Backseats pfp
0 reply
0 recast
4 reactions

Backseats pfp
1 reply
0 recast
5 reactions