mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-03 13:53:12 +00:00
fmt
This commit is contained in:
parent
4de3f95f1f
commit
93216a16ea
@ -80,7 +80,11 @@ mod tests {
|
||||
fn sample_payload() -> UTXOPayload {
|
||||
UTXOPayload {
|
||||
owner: sample_account(),
|
||||
asset: serde_json::to_vec(&TestAsset { id: 1, name: "Test".to_string() }).unwrap(),
|
||||
asset: serde_json::to_vec(&TestAsset {
|
||||
id: 1,
|
||||
name: "Test".to_string(),
|
||||
})
|
||||
.unwrap(),
|
||||
}
|
||||
}
|
||||
|
||||
@ -119,7 +123,13 @@ mod tests {
|
||||
// Interpret asset as TestAsset
|
||||
let interpreted: TestAsset = utxo.interpret_asset().unwrap();
|
||||
|
||||
assert_eq!(interpreted, TestAsset { id: 1, name: "Test".to_string() });
|
||||
assert_eq!(
|
||||
interpreted,
|
||||
TestAsset {
|
||||
id: 1,
|
||||
name: "Test".to_string()
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@ -76,8 +76,8 @@ impl Default for UTXOSparseMerkleTree {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::utxo_core::{UTXOPayload, UTXO};
|
||||
use storage::{merkle_tree_public::TreeHashType, AccountId};
|
||||
use crate::utxo_core::{UTXO, UTXOPayload};
|
||||
|
||||
fn sample_utxo_payload() -> UTXOPayload {
|
||||
UTXOPayload {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user