From 1eed2f41196cb2a6f09a5c4c42adb1da904b066a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jer=C3=B3nimo=20Albi?= Date: Mon, 4 Dec 2023 14:17:22 +0100 Subject: [PATCH] fix: add default fee for transactions (#26) --- cmd/network.go | 1 + network/networktypes/networktypes.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cmd/network.go b/cmd/network.go index 8641706..b84468f 100644 --- a/cmd/network.go +++ b/cmd/network.go @@ -226,6 +226,7 @@ func getNetworkCosmosClient(cmd *cobra.Command) (cosmosclient.Client, error) { cosmosclient.WithKeyringServiceName(cosmosaccount.KeyringServiceName), cosmosclient.WithKeyringDir(getKeyringDir(cmd)), cosmosclient.WithGas(cosmosclient.GasAuto), + cosmosclient.WithFees(networktypes.DefaultFee), } keyringBackend := getKeyringBackend(cmd) diff --git a/network/networktypes/networktypes.go b/network/networktypes/networktypes.go index a74f071..fab3f3e 100644 --- a/network/networktypes/networktypes.go +++ b/network/networktypes/networktypes.go @@ -18,4 +18,7 @@ const ( // ChainPortID is the chain ibc port id used for the relayer connection. ChainPortID = "monitoringp" + + // DefaultFee is the default fee to use when sending transactions. + DefaultFee = "500uspn" )