84 - use UniversalCollectionInfoResponse for handling custom collections
This is a very small change, but with huge impact: instead of using cw721::ContractInfoResponse, now ics721 defines its own UniversalCollectionInfoResponse.
Please note that cw721::ContractInfoResponse used cw_serde - so response needs to EXACTLY match struct. In case of custom collection it may hold addtional props - hence cw_serde thows an deny_unknown_fields error.
UniversalCollectionInfoResponse on the other hand just expects response to hold name and symbol for deserialization - all other props are ignored.
84 - use
UniversalCollectionInfoResponse
for handling custom collectionsThis is a very small change, but with huge impact: instead of using
cw721::ContractInfoResponse
, now ics721 defines its ownUniversalCollectionInfoResponse
.Please note that
cw721::ContractInfoResponse
usedcw_serde
- so response needs to EXACTLY match struct. In case of custom collection it may hold addtional props - hencecw_serde
thows andeny_unknown_fields
error.UniversalCollectionInfoResponse
on the other hand just expects response to holdname
andsymbol
for deserialization - all other props are ignored.