public-awesome / cw-nfts

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

Rename all_approvals to operators; Fix approval queries #34

Closed orkunkl closed 2 years ago

orkunkl commented 2 years ago

In my previous PR https://github.com/CosmWasm/cw-nfts/pull/32, I implemented approval query. Well I thought implemented it. The problem is I read the logic above the code which was named all_approvals and then used the same query for individual approvals. But the logic was different. The all_approvals naming is not very explanatory for the logic. So I renamed it in this PR. fixed the approval query and added a query to gel all approvals of a token.