pendulum-chain / api-solang

This is the code for the npm package @pendulum-chain/api-solang
0 stars 0 forks source link

Allow to skip dry-running method calls #11

Closed TorstenStueber closed 3 months ago

TorstenStueber commented 3 months ago

Currently every method call is first dry-run in order to estimate gas fees and use these estimates in the actual method call.

There are scenarios where a transaction needs to be created at an earlier time point so that dry running would generate an error. In this case the solution is to just skip dry running altogether and create the transaction directly.

TODO

Add an optional Boolean parameter skipDryRunning to executeMessage and createExecuteMessageExtrinsic. If this parameter is true, skip the dry running step and use the provided gas limits as the required gas.