From 1aeeb406ac6636533d3c82c4bf1836f190fb7803 Mon Sep 17 00:00:00 2001 From: Omri Date: Tue, 14 Feb 2023 13:42:06 +0100 Subject: [PATCH] Added default gas limit. (#246) --- settlement/dymension/dymension.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/settlement/dymension/dymension.go b/settlement/dymension/dymension.go index c16091d19..fd12d4c47 100644 --- a/settlement/dymension/dymension.go +++ b/settlement/dymension/dymension.go @@ -28,6 +28,7 @@ const ( addressPrefix = "dym" dymRollappVersion = 0 defaultNodeAddress = "http://localhost:26657" + defaultGasLimit = 300000 ) const ( @@ -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),