Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mpc endpoint #623

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading