Skip to content

Commit

Permalink
fix: coin type should be 60 for all keys (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs authored Sep 24, 2024
1 parent c0deb76 commit 7c95e1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions cmd/config/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ func Cmd() *cobra.Command {
}
baseDenom := rlpCfg.Denom

coinType := 118
if rlpCfg.VMType == consts.EVM_ROLLAPP {
coinType = 60
}
coinType := 60
rly := relayer.NewRelayer(rlpCfg.Home, rlpCfg.RollappID, rlpCfg.HubData.ID)
_, _, err = rly.LoadActiveChannel()
if err != nil || rly.SrcChannel == "" || rly.DstChannel == "" {
Expand Down
9 changes: 3 additions & 6 deletions cmd/config/init/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/dymensionxyz/roller/cmd/utils"
"github.com/dymensionxyz/roller/utils/bash"
"github.com/dymensionxyz/roller/utils/config"
keys2 "github.com/dymensionxyz/roller/utils/keys"
keyutils "github.com/dymensionxyz/roller/utils/keys"
)

func GenerateSequencersKeys(initConfig config.RollappConfig) ([]utils.KeyInfo, error) {
Expand All @@ -19,7 +19,7 @@ func GenerateSequencersKeys(initConfig config.RollappConfig) ([]utils.KeyInfo, e
for _, key := range keys {
var address *utils.KeyInfo
var err error
address, err = keys2.CreateAddressBinary(key, initConfig.Home)
address, err = keyutils.CreateAddressBinary(key, initConfig.Home)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -150,10 +150,7 @@ func GenerateRelayerKeys(rollappConfig config.RollappConfig) ([]utils.KeyInfo, e
}

func getAddRlyKeyCmd(keyConfig utils.KeyConfig, chainID string) *exec.Cmd {
coinType := "118"
if keyConfig.Type == consts.EVM_ROLLAPP {
coinType = "60"
}
coinType := "60"
return exec.Command(
consts.Executables.Relayer,
"keys",
Expand Down

0 comments on commit 7c95e1e

Please sign in to comment.