|
|
@@ -104,8 +104,7 @@ impl Lnd {
|
|
|
.map_err(|err| {
|
|
|
tracing::error!("Connection error: {}", err.to_string());
|
|
|
Error::Connection
|
|
|
- })
|
|
|
- .unwrap();
|
|
|
+ })?;
|
|
|
|
|
|
Ok(Self {
|
|
|
_address: address,
|
|
|
@@ -636,7 +635,7 @@ impl MintPayment for Lnd {
|
|
|
let mut lnd_client = self.lnd_client.clone();
|
|
|
|
|
|
let invoice_request = lnrpc::PaymentHash {
|
|
|
- r_hash: hex::decode(payment_identifier.to_string()).unwrap(),
|
|
|
+ r_hash: hex::decode(payment_identifier.to_string())?,
|
|
|
..Default::default()
|
|
|
};
|
|
|
|