Skip to content

Commit b36d41c

Browse files
committed
feat: opinit-bots
1 parent 5a0d636 commit b36d41c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cosmosutils/keys.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ func OPInitRecoverKeyFromMnemonic(appName, keyname, mnemonic string, isCelestia
155155
// Add the mnemonic input after the confirmation (if any)
156156
inputBuffer.WriteString(mnemonic + "\n")
157157
if isCelestia {
158-
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--recover", "--bech32", "celestia", "--home", opInitHome)
158+
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--coin-type", "118", "--key-type", "secp256k1", "--recover", "--bech32", "celestia", "--home", opInitHome)
159159
} else {
160-
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--recover", "--home", opInitHome)
160+
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--coin-type", "118", "--key-type", "secp256k1", "--recover", "--home", opInitHome)
161161
}
162162
// Pass the combined confirmation and mnemonic as input to the command
163163
cmd.Stdin = &inputBuffer
@@ -248,9 +248,9 @@ func OPInitAddOrReplace(appName, keyname string, isCelestia bool, opInitHome str
248248
var cmd *exec.Cmd
249249

250250
if isCelestia {
251-
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--bech32", "celestia", "--home", opInitHome)
251+
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--coin-type", "118", "--key-type", "secp256k1", "--bech32", "celestia", "--home", opInitHome)
252252
} else {
253-
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--home", opInitHome)
253+
cmd = exec.Command(appName, "keys", "add", "weave-dummy", keyname, "--coin-type", "118", "--key-type", "secp256k1", "--home", opInitHome)
254254

255255
}
256256
// Simulate pressing 'y' for confirmation

0 commit comments

Comments
 (0)