Added default addresses to config & rename fallback var

This commit is contained in:
Konstantin Zolotarev
2018-10-12 11:11:31 +03:00
parent 245732b7f4
commit 0b281eab47
7 changed files with 68 additions and 2 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ package shared
import "github.com/spf13/viper"
func getContractValue(key string, val string) string {
func getContractValue(key string, fallback string) string {
value := viper.GetString(key)
if value == "" {
return val
return fallback
}
return value
}