Merge PR #4961: Switched keys prefixes to the config ones

This commit is contained in:
tyldar 2019-08-28 16:37:05 +02:00 committed by Alexander Bezobchuk
parent 5aacf454e1
commit a131570cdc
1 changed files with 7 additions and 6 deletions

View File

@ -17,13 +17,14 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )
var config = sdk.GetConfig()
var bech32Prefixes = []string{ var bech32Prefixes = []string{
sdk.Bech32PrefixAccAddr, config.GetBech32AccountAddrPrefix(),
sdk.Bech32PrefixAccPub, config.GetBech32AccountPubPrefix(),
sdk.Bech32PrefixValAddr, config.GetBech32ValidatorAddrPrefix(),
sdk.Bech32PrefixValPub, config.GetBech32ValidatorPubPrefix(),
sdk.Bech32PrefixConsAddr, config.GetBech32ConsensusAddrPrefix(),
sdk.Bech32PrefixConsPub, config.GetBech32ConsensusPubPrefix(),
} }
type hexOutput struct { type hexOutput struct {