Skip to content

Commit

Permalink
fix: add default fee for transactions (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeronimoalbi authored Dec 4, 2023
1 parent b6075f4 commit 1eed2f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions network/networktypes/networktypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

0 comments on commit 1eed2f4

Please sign in to comment.