Skip to content
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

Commit 1eed2f4

Browse files
authored
fix: add default fee for transactions (#26)
1 parent b6075f4 commit 1eed2f4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cmd/network.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ func getNetworkCosmosClient(cmd *cobra.Command) (cosmosclient.Client, error) {
226226
cosmosclient.WithKeyringServiceName(cosmosaccount.KeyringServiceName),
227227
cosmosclient.WithKeyringDir(getKeyringDir(cmd)),
228228
cosmosclient.WithGas(cosmosclient.GasAuto),
229+
cosmosclient.WithFees(networktypes.DefaultFee),
229230
}
230231

231232
keyringBackend := getKeyringBackend(cmd)

network/networktypes/networktypes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ const (
1818

1919
// ChainPortID is the chain ibc port id used for the relayer connection.
2020
ChainPortID = "monitoringp"
21+
22+
// DefaultFee is the default fee to use when sending transactions.
23+
DefaultFee = "500uspn"
2124
)

0 commit comments

Comments
 (0)