Skip to content

Commit

Permalink
Add cosmos tag for CosmosKeyStoreConfig (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
maiquanghiep authored and samricotta committed Dec 11, 2024
1 parent 6dd0c8c commit cce0e5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ through API
* [#48](https://github.com/babylonlabs-io/covenant-emulator/pull/48) Add covenant
signer version that requires unlocking
* [#49](https://github.com/babylonlabs-io/covenant-emulator/pull/49) Add show-key command
* [#52](https://github.com/babylonlabs-io/covenant-emulator/pull/52) Fix CosmosKeyStoreConfig

## v0.9.0

Expand Down
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 cce0e5d

Please sign in to comment.