1

I am trying to transfer an amount to a contract while calling a contract endpoint using the Batch API provided by Taquito. I've tried passing a parameter object as shown in the Taquito documentation, this returns an error.

Taquito wesbite

Here is my code:

My code

And here is the result:

Result

As you can see, the returned error is not entirely clear. The closest I can get to solving this is that the "value" property of the parameter object only accepts a MichelsonV1Expression.

Does anyone have a better idea? Is there is a better way to do this, perhaps chaining withContractCall(contract.methods.mint(1)) after each withTransfer method?

1

Setting the value property of the parameter object did the trick. It's basically just a json object { int: '1' } but with integers represented as a string.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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