Skip to content

Commit

Permalink
use none addr type
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Oct 1, 2023
1 parent 51c08ae commit 93be6ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/payjoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use anyhow::{anyhow, Context};
use axum::headers::HeaderMap;
use bitcoin::psbt::Psbt;
use bitcoin::Amount;
use bitcoincore_rpc::json::AddressType;
use bitcoincore_rpc::RpcApi;
use payjoin::receive::ProvisionalProposal;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -49,7 +48,7 @@ pub async fn request_bip21(state: Arc<Mutex<AppState>>, value: i64) -> anyhow::R
.lock()
.map_err(|_| anyhow::anyhow!("failed to get lock"))?
.bitcoin_client
.get_new_address(Some("payjoin"), Some(AddressType::Bech32m))?
.get_new_address(Some("payjoin"), None)?
.assume_checked()
};
let amount = Amount::from_sat(value as u64);
Expand Down

0 comments on commit 93be6ae

Please sign in to comment.