File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
ironfish-cli/src/commands/wallet Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export class ImportCommand extends IronfishCommand {
84
84
}
85
85
}
86
86
CliUx . ux . error (
87
- `Detected mnemonic input, but the import failed.
87
+ `Detected mnemonic input, but the import failed.
88
88
Please verify the input text or use a different method to import wallet` ,
89
89
)
90
90
}
@@ -101,7 +101,16 @@ export class ImportCommand extends IronfishCommand {
101
101
// bech32 encoded json
102
102
const [ decoded , _ ] = Bech32m . decode ( data )
103
103
if ( decoded ) {
104
- return JSONUtils . parse < AccountImport > ( decoded )
104
+ let data = JSONUtils . parse < AccountImport > ( decoded )
105
+
106
+ if ( data . spendingKey ) {
107
+ data = {
108
+ ...data ,
109
+ ...generateKeyFromPrivateKey ( data . spendingKey ) ,
110
+ }
111
+ }
112
+
113
+ return data
105
114
}
106
115
107
116
// mnemonic or explicit spending key
You can’t perform that action at this time.
0 commit comments