Skip to content

Querying CW 1.0 contracts returning system error or encrypted response #124

Open
@aakamenov

Description

@aakamenov

I have a CW 1.0 contract on testnet with two queries.

  • The first one simply returns a few contract address/code hashes from the contract's storage. However, querying this with secret.js returns an encrypted string.
  • The second one calls a CW 0.10 contract, does some math on the result and returns a response. However, the query returns the following error:
"Generic error: Querier system error: Cannot parse response: Error parsing into type 
secret_cosmwasm_std::results::system_result::SystemResult<secret_cosmwasm_std::results::contract_result::ContractResult<secret_cosmwasm_std::binary::Binary>>:
Invalid type in: {\\\"Ok\\\":{\\\"Err\\\":{\\\"generic_err\\\":{\\\"msg\\\":\\\"55f701d7e86ad1758f6a812ac35174a4f911bc9a1e1066c3ca3ee63736408005: invalid address\\\"}}}}"

Secret.js versions tested on: 1.5.0-beta.1 and 1.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions