Skip to content

Commit

Permalink
Remove sdkConfig singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Treglia committed Sep 24, 2019
1 parent 5ab4d2a commit 35b5380
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ type Config struct {
keyringServiceName string
}

var (
// Initializing an instance of Config
sdkConfig = &Config{
// GetConfig returns the config instance for the SDK.
func GetConfig() *Config {
return &Config{
sealed: false,
bech32AddressPrefix: map[string]string{
"account_addr": Bech32PrefixAccAddr,
Expand All @@ -37,11 +37,6 @@ var (
txEncoder: nil,
keyringServiceName: DefaultKeyringServiceName,
}
)

// GetConfig returns the config instance for the SDK.
func GetConfig() *Config {
return sdkConfig
}

func (config *Config) assertNotSealed() {
Expand Down

0 comments on commit 35b5380

Please sign in to comment.