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"
)
var config = sdk.GetConfig()
var bech32Prefixes = []string{
sdk.Bech32PrefixAccAddr,
sdk.Bech32PrefixAccPub,
sdk.Bech32PrefixValAddr,
sdk.Bech32PrefixValPub,
sdk.Bech32PrefixConsAddr,
sdk.Bech32PrefixConsPub,
config.GetBech32AccountAddrPrefix(),
config.GetBech32AccountPubPrefix(),
config.GetBech32ValidatorAddrPrefix(),
config.GetBech32ValidatorPubPrefix(),
config.GetBech32ConsensusAddrPrefix(),
config.GetBech32ConsensusPubPrefix(),
}
type hexOutput struct {