vechain-sdk-js icon indicating copy to clipboard operation
vechain-sdk-js copied to clipboard

💡 [REQUEST] - Support transaction options with `executeMultipleClausesTransaction`

Open ifavo opened this issue 6 months ago • 0 comments

Summary

Issueing transactions using executeTransaction or executeMultipleClausesTransaction does not accept options to define a custom gas calculation.

Transactions of mine run frequently into out of gas due the inability.

https://github.com/vechain/vechain-sdk-js/blob/1.0.0-beta.26/packages/network/src/thor-client/contracts/contracts-module.ts#L191-L194

I suggest to add the options to executeMultipleClausesTransaction and executeTransaction.

Basic Example

await thor.contracts.executeTransaction(signer, address, fragment, parameters, { gas })
await thor.contracts.executeMultipleClausesTransaction([], signer, { gas }

ifavo avatar Aug 07 '24 04:08 ifavo