rooch-network / rooch

VApp Container with Move Language
https://rooch.network
Apache License 2.0
128 stars 54 forks source link

[CLI] Add `--gas-limit` option when sending transactions in CLI #1257

Closed pause125 closed 2 weeks ago

pause125 commented 4 months ago

The current gas limit is 100_000_000, which is insufficient in certain situations. To allow users to customize the gas limit when sending transactions, an option "--gas-limit" should be added to the CLI command, like rooch move run, rooch move publish, etc.

jolestar commented 4 months ago

Add to the TransactionOptions.

https://github.com/rooch-network/rooch/blob/4691056cf30b66caf9a9050dc4f429e35c5b394a/crates/rooch/src/cli_types.rs#L70-L71