Skip to content

Commit

Permalink
don't discard funding_tx error
Browse files Browse the repository at this point in the history
Co-authored-by: TheCharlatan <seb.kung@gmail.com>
  • Loading branch information
Lederstrumpf and TheCharlatan committed Dec 15, 2022
1 parent ddb110c commit 7c275ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/swapd/swap_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,9 @@ fn attempt_transition_to_init_maker(
Ok(Some(SwapStateMachine::BobInitMaker(BobInitMaker {
local_commit,
local_params,
funding_address: funding_tx.get_address().ok().unwrap(),
funding_address: funding_tx
.get_address()
.expect("Funding address should be valid"),
remote_commit: commit,
wallet,
reveal: None,
Expand Down

0 comments on commit 7c275ef

Please sign in to comment.