app: change bech32 prefix cosmos -> eth (#429)

This commit is contained in:
Federico Kunze
2020-08-05 09:27:48 -04:00
committed by GitHub
parent 1428cd6a5c
commit 5ff2b316cb
5 changed files with 69 additions and 8 deletions
+2 -3
View File
@@ -26,6 +26,7 @@ import (
"github.com/cosmos/ethermint/codec"
"github.com/cosmos/ethermint/crypto"
"github.com/cosmos/ethermint/rpc"
ethermint "github.com/cosmos/ethermint/types"
)
var (
@@ -44,9 +45,7 @@ func main() {
// Read in the configuration file for the sdk
config := sdk.GetConfig()
config.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub)
config.SetBech32PrefixForValidator(sdk.Bech32PrefixValAddr, sdk.Bech32PrefixValPub)
config.SetBech32PrefixForConsensusNode(sdk.Bech32PrefixConsAddr, sdk.Bech32PrefixConsPub)
ethermint.SetBech32Prefixes(config)
config.Seal()
rootCmd := &cobra.Command{
+2 -3
View File
@@ -31,6 +31,7 @@ import (
"github.com/cosmos/ethermint/client"
"github.com/cosmos/ethermint/codec"
"github.com/cosmos/ethermint/crypto"
ethermint "github.com/cosmos/ethermint/types"
)
const flagInvCheckPeriod = "inv-check-period"
@@ -52,9 +53,7 @@ func main() {
clientkeys.KeysCdc = cdc
config := sdk.GetConfig()
config.SetBech32PrefixForAccount(sdk.Bech32PrefixAccAddr, sdk.Bech32PrefixAccPub)
config.SetBech32PrefixForValidator(sdk.Bech32PrefixValAddr, sdk.Bech32PrefixValPub)
config.SetBech32PrefixForConsensusNode(sdk.Bech32PrefixConsAddr, sdk.Bech32PrefixConsPub)
ethermint.SetBech32Prefixes(config)
config.Seal()
ctx := server.NewDefaultContext()