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

Unable to query contract #15

Open
SpencerMiller23 opened this issue Jul 31, 2022 · 0 comments
Open

Unable to query contract #15

SpencerMiller23 opened this issue Jul 31, 2022 · 0 comments

Comments

@SpencerMiller23
Copy link
Contributor

SpencerMiller23 commented Jul 31, 2022

  • secret_sdk version: 1.0
  • Python version: 3.10.4
  • Operating System: Windows

Description

I deployed the contract from the Intro to Secret Contracts tutorial and now I would like to query the value of the count variable. However, the request is returning the following error: Status 500 - rpc error: code = Unauthenticated desc = encrypted: E60OAT1rQWFRFS89f6SCeyAM3ARawFy8d55Lm73OPxuyDdZHTl/qrJWor2CtHfJCbxoRstHhtvVJ7Xo4HwM/G1+Hix4w1phbfW9y4tEqxoOY5i6JkSH/NNS7DoUpa4niejpwHanyKizoLz6UJOZY1FNbdVipjkVFfCol6E1le2tiHJ/Js+TPCbM7aQE=: query contract failed

What I Did

mk = MnemonicKey(mnemonic=my_mnemonic)
secret = LCDClient('http://testnet.securesecrets.org:1317', 'pulsar-2')
wallet = secret.wallet(mk)

def get_count():
    try:
        query_msg = {
            'get_count:': {}
        }

        count = secret.wasm.contract_query(contract_address='secret13uj6x7npak42gm9x8lqgsj4mjq6fpwphtwsp6f', query=query_msg, height=4046700)
        print(count)
    except Exception as e:
        print(f'Error: {e}')
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

1 participant