public-awesome / cw-nfts

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

[cw721-fixed-price] Fix receiving cw20 msg #49

Closed axvn closed 2 years ago

axvn commented 2 years ago

Cw721-fixed-price contract raise deserialization exception on receiving cw20 tokens, because the message received is wrapped in receive {..}, not cw20_receive_msg {..}

Cw20ReceiveMsg should be de/serialized under Receive() variant in a ExecuteMsg

Ref