Skip to content

Commit 951a2a5

Browse files
authored
Merge pull request #5 from buffrr/import-fix
Fix importwallet
2 parents eb8dc9a + 27ac7bf commit 951a2a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

node/src/rpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ impl WalletManager {
296296
)));
297297
}
298298

299+
fs::create_dir_all(&wallet_path)?;
299300
let wallet_export_path = wallet_path.join("wallet.json");
300301
let mut file = fs::File::create(wallet_export_path)?;
301302
file.write_all(wallet.to_string().as_bytes())?;

0 commit comments

Comments
 (0)