We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e3a4d commit a99c110Copy full SHA for a99c110
ironfish-cli/src/commands/wallet/import.ts
@@ -127,7 +127,16 @@ export class ImportCommand extends IronfishCommand {
127
128
// raw json
129
try {
130
- return JSONUtils.parse<AccountImport>(data)
+ let json = JSONUtils.parse<AccountImport>(data)
131
+
132
+ if (json.spendingKey) {
133
+ json = {
134
+ ...json,
135
+ ...generateKeyFromPrivateKey(json.spendingKey),
136
+ }
137
138
139
+ return json
140
} catch (e) {
141
CliUx.ux.error(`Import failed for the given input: ${data}`)
142
}
0 commit comments