mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-27 19:20:32 -05:00
Move test functions out of lib
This commit is contained in:
parent
61a8a3e428
commit
bf576bf251
4 changed files with 57 additions and 33 deletions
|
|
@ -124,16 +124,6 @@ impl_from_child_state!(State3);
|
|||
impl_from_child_state!(State4);
|
||||
impl_from_child_state!(State5);
|
||||
|
||||
// TODO: use macro or generics
|
||||
pub fn is_state5(state: &State) -> bool {
|
||||
matches!(state, State::State5 { .. })
|
||||
}
|
||||
|
||||
// TODO: use macro or generics
|
||||
pub fn is_state3(state: &State) -> bool {
|
||||
matches!(state, State::State3 { .. })
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct State0 {
|
||||
b: bitcoin::SecretKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue