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

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

Open
aakamenov opened this issue Nov 28, 2022 · 2 comments
Open

Comments

@aakamenov
Copy link

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

@liorbond
Copy link
Contributor

@aakamenov Hey, can you share the contract binary for us to be able to reproduce the issue?
Also, were you able to reproduce it on localsecret as well?

@aakamenov
Copy link
Author

Code id on testnet is 17279 and there is an instance with address secret1p3l6x2qww4fym8j496z66cnq48jap83k3wmkjh. Haven't tried on localsecret yet but this contract relies on two 3rd party contracts that we don't have access to so can't make a 1:1 test on localsecret exactly.

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