mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-31 18:48:52 -04:00
Do not introduced State6
This commit is contained in:
parent
8615aaed6e
commit
9a823dca4c
4 changed files with 30 additions and 41 deletions
|
@ -363,8 +363,8 @@ impl BobHarness {
|
|||
}
|
||||
|
||||
pub async fn assert_redeemed(&self, state: BobState) {
|
||||
let lock_tx_id = if let BobState::XmrRedeemed(state6) = state {
|
||||
state6.tx_lock_id()
|
||||
let lock_tx_id = if let BobState::XmrRedeemed { tx_lock_id } = state {
|
||||
tx_lock_id
|
||||
} else {
|
||||
panic!("Bob in unexpected state");
|
||||
};
|
||||
|
@ -423,8 +423,8 @@ impl BobHarness {
|
|||
}
|
||||
|
||||
pub async fn assert_punished(&self, state: BobState) {
|
||||
let lock_tx_id = if let BobState::BtcPunished(state6) = state {
|
||||
state6.tx_lock_id()
|
||||
let lock_tx_id = if let BobState::BtcPunished { tx_lock_id } = state {
|
||||
tx_lock_id
|
||||
} else {
|
||||
panic!("Bob in unexpected state");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue