Skip to content

Commit

Permalink
swap_state: local_params getter missing RefundSig and Corearb
Browse files Browse the repository at this point in the history
  • Loading branch information
zkao committed Jun 21, 2022
1 parent 304a49b commit e9f6946
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 @@ -190,7 +190,9 @@ impl State {
State::Alice(AliceState::CommitA { local_params, .. })
| State::Bob(BobState::CommitB { local_params, .. })
| State::Alice(AliceState::RevealA { local_params, .. })
| State::Bob(BobState::RevealB { local_params, .. }) => Some(local_params),
| State::Alice(AliceState::RefundSigA { local_params, .. })
| State::Bob(BobState::RevealB { local_params, .. })
| State::Bob(BobState::CorearbB { local_params, .. }) => Some(local_params),
_ => None,
}
}
Expand Down

0 comments on commit e9f6946

Please sign in to comment.