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.
Here is my code:
And here is the 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?