Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization fails for juno cw721 contract #116

Open
xoac opened this issue Apr 4, 2023 · 1 comment
Open

Deserialization fails for juno cw721 contract #116

xoac opened this issue Apr 4, 2023 · 1 comment

Comments

@xoac
Copy link

xoac commented Apr 4, 2023

The contract juno1a90f8jdwm4h43yzqgj4xqzcfxt4l98ev970vwz6l9m02wxlpqd2squuv6k will fail to de-serialize into ContractInfoResposne.

    #[test]
    fn deserialize_juno_contract_info() {
        let raw = r#"{
            "type": "contract_info",
            "response": {
              "name": "Levana Dragons",
              "symbol": "LVNDRG",
              "royalty_bps": [
                400
              ],
              "royalty_addrs": [
                "juno19dkmvwf7ru5enm3ags334702lgtq7l4a75vvv9ry35zwqpd76rpq9qvukk"
              ]
            }
          }"#;

        let _: ContractInfoResponse = serde_json::from_str(&raw).unwrap();
    }

Is this expected behavior or bug?

@xoac xoac changed the title Is deserialize of ContractInfoResp faild for cw721-base extension contract? Deserialization fails for juno cw721 contract Apr 4, 2023
@Art3miX
Copy link
Collaborator

Art3miX commented Jun 16, 2023

You missing minter in the response? here is the info i get

{
  "type": "contract_info",
  "response": {
    "name": "Loop Airdrop NFTs",
    "symbol": "LAIR",
    "minter": "juno1feq3xa9dn3g3qsd3cdmxkedmettahaygchcntx60qumc6k5k45jqxtdyrw",
    "royalty_bps": [
      500
    ],
    "royalty_addrs": [
      "juno1fknslarrqwv3sz3wupr4s2s3uegm5llxxq6pgaz97japn68nadlq3ey5ms"
    ]
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants