diff --git a/app/rpc/namespaces/eth/api.go b/app/rpc/namespaces/eth/api.go index 9c20a63efd..cb93856ec2 100644 --- a/app/rpc/namespaces/eth/api.go +++ b/app/rpc/namespaces/eth/api.go @@ -10,6 +10,7 @@ import ( "sync" "time" + cmserver "github.com/cosmos/cosmos-sdk/server" "github.com/spf13/viper" "github.com/okex/okexchain/app/crypto/ethsecp256k1" @@ -94,7 +95,7 @@ func (api *PublicEthereumAPI) GetKeyringInfo() error { keybase, err := keys.NewKeyring( sdk.KeyringServiceName(), viper.GetString(flags.FlagKeyringBackend), - viper.GetString(flags.FlagHome), + viper.GetString(cmserver.FlagUlockKeyHome), api.clientCtx.Input, hd.EthSecp256k1Options()..., )