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

lsd.wasm.contractQuery crashed with "Error parsing into type basset::reward::QueryMsg: unknown variant token_info..." #345

Open
Ivan-dev-RED opened this issue Jan 12, 2023 · 1 comment

Comments

@Ivan-dev-RED
Copy link

Ivan-dev-RED commented Jan 12, 2023

For most smart contracts, I can get information from the following line.

lcdClient.wasm.contractQuery(contractAddress, { token_info: {} } );

But for terra1w7ssgvtetdzczyl98pdxvs79nw9g6rjejt0urxegm30dukddyesqy0g95n, terra1ly8gd96kc8rwhjhpvx64jr9qd3nkn8yrm0gflplk5vhyff0fllxqc43w3k, terra170e8mepwmndwfgs5897almdewrt6phnkksktlf958s90eh055xvsrndvku it is not working.

For them I get the following

"message":
"Error parsing into type basset::reward::QueryMsg: unknown variant `token_info`, expected one of `config`, `state`, `accrued_rewards`, `holder`, `holders`: query wasm contract failed: invalid request"

Also I tried another variation

lcdClient.wasm.contractQuery(contractAddress, { config: {} } );

For these i getting

"message":"Error parsing into type cw20_base::msg::QueryMsg: unknown variant `config`, expected one of `balance`, `token_info`, `minter`, `allowance`, `all_allowances`, `all_spender_allowances`, `all_accounts`, `marketing_info`, `download_logo`: query wasm contract failed: invalid request"

What the hell is going on??

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
@Ivan-dev-RED and others