Skip to content

Commit

Permalink
fix: set cointype to 118 for wasm rollapp (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs authored Sep 24, 2024
1 parent 7c95e1e commit 09b708e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/config/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func Cmd() *cobra.Command {
baseDenom := rlpCfg.Denom

coinType := 60
if rlpCfg.VMType == consts.WASM_ROLLAPP {
coinType = 118
}

rly := relayer.NewRelayer(rlpCfg.Home, rlpCfg.RollappID, rlpCfg.HubData.ID)
_, _, err = rly.LoadActiveChannel()
if err != nil || rly.SrcChannel == "" || rly.DstChannel == "" {
Expand Down
5 changes: 4 additions & 1 deletion cmd/config/init/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func GetRelayerKeysConfig(rollappConfig config.RollappConfig) map[string]utils.K
Dir: path.Join(rollappConfig.Home, consts.ConfigDirName.Relayer),
ID: consts.KeysIds.RollappRelayer,
ChainBinary: rollappConfig.RollappBinary,
Type: consts.EVM_ROLLAPP,
Type: rollappConfig.VMType,
},
consts.KeysIds.HubRelayer: {
Dir: path.Join(rollappConfig.Home, consts.ConfigDirName.Relayer),
Expand Down Expand Up @@ -151,6 +151,9 @@ func GenerateRelayerKeys(rollappConfig config.RollappConfig) ([]utils.KeyInfo, e

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

0 comments on commit 09b708e

Please sign in to comment.