Skip to content

Commit

Permalink
Merge pull request #1207 from MutinyWallet/zeus-rev-share
Browse files Browse the repository at this point in the history
Add auth tokens to Flow
  • Loading branch information
TonyGiorgio authored Jun 7, 2024
2 parents 81cd86d + 724bf3d commit feea55a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mutiny-core/src/lsp/voltage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl LspClient {
) -> Result<(PublicKey, String), MutinyError> {
let request = http_client
.get(format!("{}{}", url, GET_INFO_PATH))
.header("x-auth-token", "mutiny")
.build()
.map_err(|e| {
log_error!(logger, "Error building connection info request: {e}");
Expand Down Expand Up @@ -287,6 +288,7 @@ impl Lsp for LspClient {
.http_client
.post(format!("{}{}", &self.url, PROPOSAL_PATH))
.json(&payload)
.header("x-auth-token", "mutiny")
.build()
.map_err(|_| MutinyError::LspGenericError)?;

Expand Down Expand Up @@ -344,6 +346,7 @@ impl Lsp for LspClient {
.http_client
.post(format!("{}{}", &self.url, FEE_PATH))
.json(&fee_request)
.header("x-auth-token", "mutiny")
.build()
.map_err(|_| MutinyError::LspGenericError)?;
let response: reqwest::Response = utils::fetch_with_timeout(&self.http_client, request)
Expand Down

0 comments on commit feea55a

Please sign in to comment.