Skip to content

how to handle this error message: "failed to execute message; message index: 0: dispatch: submessages: Generic error: Querier system error: Unsupported query type: unknown terra query variant: execute wasm contract failed [CosmWasm/wasmd@v0.30.0/x/wasm/keeper/keeper.go:429]  #69

@mnuestc

Description

@mnuestc

hey guys, i want to use this script to withdraw ustc from aust, using flowing script:,but it throw error message: "failed to execute message; message index: 0: dispatch: submessages: Generic error: Querier system error: Unsupported query type: unknown terra query variant: execute wasm contract failed [CosmWasm/wasmd@v0.30.0/x/wasm/keeper/keeper.go:429] With gas wanted: '1000000000' and gas used: '514492' "
could you help me to see how to solve this?

import { LCDClient, MnemonicKey, RawKey, MsgExecuteContract, Wallet } from '@terra-money/terra.js';
  async function withDraw(wallet: Wallet) {
    const execute = new MsgExecuteContract(
      wallet.key.accAddress, // sender
      "terra1hzh9vpxhsk8253se0vv5jj6etdvxu3nv8z07zu", // aUst contract
      {
        "send": {
          "msg": "eyJyZWRlZW1fc3RhYmxlIjp7fX0=",
          "amount": "1000000000",
          "contract": "terra1sepfj7s0aeg5967uxnfk4thzlerrsktkpelm5s"
        }
      },
      { uluna: 1000000 } // coins
    );
  
    const executeTx = await wallet.createAndSignTx({
      msgs: [execute],
    });
  
    const executeTxResult = await client.tx.broadcastSync(executeTx);
    console.log(executeTxResult);
  }

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