Skip to content

Instantly share code, notes, and snippets.

@sgerodes
Created January 13, 2024 03:43
Show Gist options
  • Save sgerodes/aeaf40a19ac77c6cf90e67e2771ea1a5 to your computer and use it in GitHub Desktop.
Save sgerodes/aeaf40a19ac77c6cf90e67e2771ea1a5 to your computer and use it in GitHub Desktop.
test_utils.rs
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