Created
January 13, 2024 03:43
-
-
Save sgerodes/aeaf40a19ac77c6cf90e67e2771ea1a5 to your computer and use it in GitHub Desktop.
test_utils.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use super::*; | |
fn empty_wallet() -> Wallet { | |
Wallet::new(vec![].into_iter()) | |
} | |
pub fn wallet_with_alice() -> Wallet { | |
Wallet::new(vec![Address::Alice].into_iter()) | |
} | |
pub fn wallet_with_alice_and_bob() -> Wallet { | |
Wallet::new(vec![Address::Alice, Address::Bob].into_iter()) | |
} | |
pub fn wallet_with_alice_and_bob_and_charlie() -> Wallet { | |
Wallet::new(vec![Address::Alice, Address::Bob, Address::Charlie].into_iter()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment