public-awesome / cw-nfts

Examples and helpers to build NFT contracts on CosmWasm
Apache License 2.0
188 stars 180 forks source link

Add cw721-receiver contract #144

Closed chipshort closed 8 months ago

chipshort commented 10 months ago

This implements an example contract that can receive a cw721 token and then just succeed or error depending on the passed message.

Also fine if you don't want to merge. We just needed this for a wasmd test. In that case, just close it.

JakeHartnell commented 10 months ago

This is really helpful! Have had to make similar contracts to this myself... maybe we need a test-contracts folder? Open to ideas from others but would be down to have some test contracts like this.

Art3miX commented 9 months ago

This is really helpful! Have had to make similar contracts to this myself... maybe we need a test-contracts folder? Open to ideas from others but would be down to have some test contracts like this.

I think having a test-contracts folder is smart, you almost always need a test contract if you work with cw721

chipshort commented 9 months ago

I applied @Art3miX's feedback. Should I create a test-contracts folder and move it there?

taitruong commented 8 months ago

I applied @Art3miX's feedback. Should I create a test-contracts folder and move it there?

Just rename it to cw721-receiver-tester, no extra folder needed imo. Once done we can merge it then.

chipshort commented 8 months ago

Can someone merge? I don't have write access here