mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 14:32:24 -04:00
Default to buy xmr using default trait
This commit is contained in:
parent
d6d67f62f1
commit
9a82b572ec
2 changed files with 68 additions and 104 deletions
|
@ -84,3 +84,16 @@ pub enum Command {
|
|||
force: bool,
|
||||
},
|
||||
}
|
||||
|
||||
impl Default for Command {
|
||||
fn default() -> Self {
|
||||
Self::BuyXmr {
|
||||
alice_peer_id: DEFAULT_ALICE_PEER_ID
|
||||
.parse()
|
||||
.expect("default alice peer id str is a valid Multiaddr>"),
|
||||
alice_addr: DEFAULT_ALICE_MULTIADDR
|
||||
.parse()
|
||||
.expect("default alice multiaddr str is a valid PeerId"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue