Splitting side-node crate into lib/bin for integration tests

This commit is contained in:
Dave Hrycyszyn
2024-06-17 15:25:22 +01:00
parent 8fa0eebe2b
commit d38721e1a0
6 changed files with 113 additions and 75 deletions

View File

@@ -24,9 +24,9 @@ pub(crate) fn home(name: &String) -> std::path::PathBuf {
}
/// Generate a fake transaction with customizable from_pubkey String
pub(crate) fn fake_transaction(from_pubkey: String) -> Value {
pub fn fake_transaction_json(from: String) -> Value {
json!({
"from": from_pubkey,
"from": from,
"to": "Bob",
"amount": 1
})