Skip to content

Commit

Permalink
Set cointype
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Mar 27, 2024
1 parent f3545a0 commit 7cf8e69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ const (
appName = "Finschia"
NodeDir = ".finschia"
Bech32Prefix = "link"
CoinType = 438
)

// These constants are derived from the above variables.
Expand Down
1 change: 1 addition & 0 deletions cmd/fnsad/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func NewRootCmd() *cobra.Command {
cfg.SetBech32PrefixForValidator(app.Bech32PrefixValAddr, app.Bech32PrefixValPub)
cfg.SetBech32PrefixForConsensusNode(app.Bech32PrefixConsAddr, app.Bech32PrefixConsPub)
cfg.SetAddressVerifier(wasmtypes.VerifyAddressLen())
cfg.SetCoinType(app.CoinType)
cfg.Seal()
// we "pre"-instantiate the application for getting the injected/configured encoding configuration
// note, this is not necessary when using app wiring, as depinject can be directly used (see root_v2.go)
Expand Down

0 comments on commit 7cf8e69

Please sign in to comment.