Skip to content

Commit

Permalink
Add cosmos tag for CosmosKeyStoreConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquanghiep committed Nov 30, 2024
1 parent 8d23c16 commit 8231e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions covenant-signer/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ const defaultConfigTemplate = `# This is a TOML config file.
keystore-type = "{{ .KeyStore.KeyStoreType }}"
[keystore.cosmos]
# The chain id of the chain to connect to
chain-id = "{{ .KeyStore.CosmosKeyStore.ChainID }}"
# The directory to store the keys in
key-directory = "{{ .KeyStore.CosmosKeyStore.KeyDirectory }}"
# The keyring backend to use
Expand Down
4 changes: 2 additions & 2 deletions covenant-signer/config/keystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ type CosmosKeyStoreConfig struct {
}

type KeyStoreConfig struct {
KeyStoreType string `mapstructure:"keystore-type"`
CosmosKeyStore *CosmosKeyStoreConfig
KeyStoreType string `mapstructure:"keystore-type"`
CosmosKeyStore *CosmosKeyStoreConfig `mapstructure:"cosmos"`
}

func DefaultKeyStoreConfig() *KeyStoreConfig {
Expand Down

0 comments on commit 8231e4c

Please sign in to comment.