Skip to content

Commit

Permalink
Added default gas limit. (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix authored Feb 14, 2023
1 parent a738e1d commit 1aeeb40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settlement/dymension/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const (
addressPrefix = "dym"
dymRollappVersion = 0
defaultNodeAddress = "http://localhost:26657"
defaultGasLimit = 300000
)

const (
Expand Down Expand Up @@ -351,6 +352,9 @@ func (d *HubClient) convertBatchToMsgUpdateState(batch *types.Batch, daClient da
}

func getCosmosClientOptions(config *Config) []cosmosclient.Option {
if config.GasLimit == 0 {
config.GasLimit = defaultGasLimit
}
options := []cosmosclient.Option{
cosmosclient.WithAddressPrefix(addressPrefix),
cosmosclient.WithNodeAddress(config.NodeAddress),
Expand Down

0 comments on commit 1aeeb40

Please sign in to comment.