From 35b538008e8573c34fae8db4ce0c128d825c0896 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Tue, 24 Sep 2019 11:29:56 -0700 Subject: [PATCH] Remove sdkConfig singleton --- types/config.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/types/config.go b/types/config.go index 51c5b74bca2f..f01593afaced 100644 --- a/types/config.go +++ b/types/config.go @@ -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, @@ -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() {