Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cosmos tag for CosmosKeyStoreConfig #52

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading