mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-09 16:53:09 +00:00
add test_create_utxo_from_payload
This commit is contained in:
parent
191019beaa
commit
85561bf4dd
@ -84,5 +84,16 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_create_utxo_from_payload() {
|
||||
let payload = sample_payload();
|
||||
let utxo = UTXO::create_utxo_from_payload(payload.clone());
|
||||
|
||||
// Ensure hash is created and the UTXO fields are correctly assigned
|
||||
assert_eq!(utxo.owner, payload.owner);
|
||||
assert_eq!(utxo.asset, payload.asset);
|
||||
assert!(utxo.nullifier.is_none());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user