Skip to content

Commit

Permalink
feat: add ethsecp256k1 as the default signing algo (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 authored May 15, 2024
1 parent 473b0b4 commit 7362c6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/dymensionxyz/dymension-rdk v1.6.0
github.com/dymensionxyz/dymint v1.1.0-rc02
github.com/ethereum/go-ethereum v1.12.0
github.com/evmos/evmos/v12 v12.1.6
github.com/gorilla/mux v1.8.1
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.18.0
Expand Down Expand Up @@ -105,7 +106,6 @@ require (
github.com/dymensionxyz/cosmosclient v0.4.2-beta // indirect
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20240411195658-f7cd96f53b56 // indirect
github.com/elastic/gosigar v0.14.2 // indirect
github.com/evmos/evmos/v12 v12.1.6 // indirect
github.com/felixge/httpsnoop v1.0.2 // indirect
github.com/filecoin-project/go-jsonrpc v0.3.1 // indirect
github.com/flynn/noise v1.1.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion rollappd/cmd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/genutil"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
etherminthd "github.com/evmos/evmos/v12/crypto/hd"
)

const (
Expand All @@ -39,7 +40,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
`,
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)
clientCtx := client.GetClientContextFromCmd(cmd).WithKeyringOptions(etherminthd.EthSecp256k1Option())
cdc := clientCtx.Codec

serverCtx := server.GetServerContextFromCmd(cmd)
Expand Down
2 changes: 2 additions & 0 deletions rollappd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (

"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
etherminthd "github.com/evmos/evmos/v12/crypto/hd"

berpcconfig "github.com/bcdevtools/block-explorer-rpc-cosmos/be_rpc/config"
rdkserver "github.com/dymensionxyz/dymension-rdk/server"
Expand Down Expand Up @@ -63,6 +64,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
WithInput(os.Stdin).
WithAccountRetriever(types.AccountRetriever{}).
WithHomeDir(app.DefaultNodeHome).
WithKeyringOptions(etherminthd.EthSecp256k1Option()).
WithViper("ROLLAPP")

rootCmd := &cobra.Command{
Expand Down

0 comments on commit 7362c6f

Please sign in to comment.