taquito icon indicating copy to clipboard operation
taquito copied to clipboard

Accept `amount`, `fee`, `gasLimit` and `storageLimit` as paramaters of the `withContractCall` method

Open roxaneletourneau opened this issue 3 years ago • 2 comments

Is your feature request related to a problem and use case? Please describe. It is not possible to specify the amount, the fee, the gasLimit and the storageLimit when calling a smart contract entrypoint using the batch API via the withContractCall method.

Describe the solution you'd like Add an additional parameter to the withContractCall that will allow users to optionally specify an amount, fee, gasLimit and/or storageLimit.

Document the new parameter on the website: https://tezostaquito.io/docs/batch_API#--the-withcontractcall-method

Describe alternatives you've considered Currently, to specify those parameters, users can use the withTransfer as a workaround: .withTransfer({...contract.methods.deposit(null).toTransferParams({ amount:1, mutez:true })})

roxaneletourneau avatar Jun 27 '22 17:06 roxaneletourneau

👍 +1 on this, would love this feature.

johnnyshankman avatar Jun 27 '22 22:06 johnnyshankman

This is addressing https://github.com/ecadlabs/taquito/issues/1716

Innkst avatar Jul 07 '22 21:07 Innkst

addressed in pr#2021, has merged in master https://github.com/ecadlabs/taquito/pull/2021

hui-an-yang avatar Oct 25 '22 21:10 hui-an-yang