use memo in create_memo_tx helper

This commit is contained in:
aniketfuryrocks 2023-03-04 01:29:31 +05:30
parent 5b6e853629
commit a13e630e56
No known key found for this signature in database
GPG Key ID: FA6BFCFAA7D4B764
3 changed files with 13 additions and 1 deletions

10
Cargo.lock generated
View File

@ -387,6 +387,7 @@ dependencies = [
"solana-sdk 1.15.0",
"tokio",
"tracing-subscriber",
"uuid",
]
[[package]]
@ -5232,6 +5233,15 @@ version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
[[package]]
name = "uuid"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1674845326ee10d37ca60470760d4288a6f80f304007d92e5c53bab78c9cfd79"
dependencies = [
"getrandom 0.2.8",
]
[[package]]
name = "valuable"
version = "0.1.0"

View File

@ -15,3 +15,5 @@ clap = { version = "4.1.6", features = ["derive"] }
tokio = { version = "1.25.0", features = ["full", "fs"]}
tracing-subscriber = "0.3.16"
dirs = "4.0.0"
uuid = { version = "1.3.0", features = ["v4"] }

View File

@ -70,7 +70,7 @@ impl BenchHelper {
) -> Vec<Transaction> {
(0..num_of_txs)
.into_iter()
.map(|_| Self::create_memo_tx(b"hello", funded_payer, blockhash))
.map(|_| Self::create_memo_tx( uuid::Uuid::new_v4().as_bytes(), funded_payer, blockhash))
.collect()
}