Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicarq committed Oct 21, 2024
1 parent f97d2b7 commit c67087b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,16 @@ impl Node {
return Ok(());
}

// Note: for some reason, the private key is not unescaped for some requests and we get \\n instead of \n
// This happens if you use --data-binary and you escape the content (you shouldn't do that)
let config = config.map(|cfg| {
let unescaped_private_key = cfg.private_key.replace("\\n", "\n");
CoinbaseMPCWalletConfig {
private_key: unescaped_private_key,
..cfg
}
});

let mut wallet_manager_lock = wallet_manager.lock().await;

// Logic to restore Coinbase MPC wallet
Expand Down

0 comments on commit c67087b

Please sign in to comment.