2

I'm using polkadotjs to call my ink! smart contracts and I seem to be having trouble with calls that require parameters. For the call below I am getting the revert flag {"ok":{"flags":["Revert"],"data":"0x000110"}}, but I do not know what this means or how to figure it out. Appreciate any info you might be able to provide. Thanks

const { gasRequired, result: qResult } =
    await blockchain.marketplaceContract.query["marketplaceSale::list"](
      blockchain.account.address,
      {
        gasLimit: getGasMaxLimit(),
      },
      contractAddress,
      tokenId,
      price
    );
2

1 Answer 1

0

You can use the library useink and the helper function decodeError. Here is the implementation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.