mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-09 00:33:09 +00:00
fmt
This commit is contained in:
parent
bba2b66dbc
commit
c1fd270ecf
@ -1,5 +1,8 @@
|
|||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use storage::{sc_db_utils::{produce_blob_from_fit_vec, DataBlob, DataBlobChangeVariant}, SC_DATA_BLOB_SIZE};
|
use storage::{
|
||||||
|
sc_db_utils::{produce_blob_from_fit_vec, DataBlob, DataBlobChangeVariant},
|
||||||
|
SC_DATA_BLOB_SIZE,
|
||||||
|
};
|
||||||
|
|
||||||
///Creates blob list from generic serializable state
|
///Creates blob list from generic serializable state
|
||||||
///
|
///
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
|
pub mod blob_utils;
|
||||||
pub mod cryptography;
|
pub mod cryptography;
|
||||||
pub mod proofs_circuits;
|
pub mod proofs_circuits;
|
||||||
|
pub mod public_context;
|
||||||
pub mod traits;
|
pub mod traits;
|
||||||
pub mod transaction_payloads_tools;
|
pub mod transaction_payloads_tools;
|
||||||
pub mod public_context;
|
|
||||||
pub mod blob_utils;
|
|
||||||
|
|||||||
@ -92,7 +92,11 @@ mod tests {
|
|||||||
static SC_DATA_BLOB_SIZE: usize = TEST_BLOB_SIZE;
|
static SC_DATA_BLOB_SIZE: usize = TEST_BLOB_SIZE;
|
||||||
|
|
||||||
fn sample_vec() -> Vec<u8> {
|
fn sample_vec() -> Vec<u8> {
|
||||||
(0..SC_DATA_BLOB_SIZE).collect::<Vec<usize>>().iter().map(|&x| x as u8).collect()
|
(0..SC_DATA_BLOB_SIZE)
|
||||||
|
.collect::<Vec<usize>>()
|
||||||
|
.iter()
|
||||||
|
.map(|&x| x as u8)
|
||||||
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn sample_data_blob() -> DataBlob {
|
fn sample_data_blob() -> DataBlob {
|
||||||
@ -124,7 +128,11 @@ mod tests {
|
|||||||
|
|
||||||
let variants = vec![
|
let variants = vec![
|
||||||
DataBlobChangeVariant::Created { id: 1, blob: blob1 },
|
DataBlobChangeVariant::Created { id: 1, blob: blob1 },
|
||||||
DataBlobChangeVariant::Modified { id: 2, blob_old: blob1, blob_new: blob2 },
|
DataBlobChangeVariant::Modified {
|
||||||
|
id: 2,
|
||||||
|
blob_old: blob1,
|
||||||
|
blob_new: blob2,
|
||||||
|
},
|
||||||
DataBlobChangeVariant::Deleted { id: 3 },
|
DataBlobChangeVariant::Deleted { id: 3 },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user