Closed ifavo closed 1 month ago
Issueing transactions using executeTransaction or executeMultipleClausesTransaction does not accept options to define a custom gas calculation.
executeTransaction
executeMultipleClausesTransaction
Transactions of mine run frequently into out of gas due the inability.
out of gas
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.
await thor.contracts.executeTransaction(signer, address, fragment, parameters, { gas }) await thor.contracts.executeMultipleClausesTransaction([], signer, { gas }
Hello @ifavo, this make us think we have a bug in how we estimate gas. It's anyway useful, we will split in two tasks
Thanks for raising this, and sorry for the late reply.
Summary
Issueing transactions using
executeTransaction
orexecuteMultipleClausesTransaction
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
andexecuteTransaction
.Basic Example