Skip to content

Commit 9dd0508

Browse files
Update proof.rs
1 parent 0ce01a1 commit 9dd0508

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/proof.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// src/proof.rs
22

33
use crate::intent::{IntentId, Address, Amount};
4+
use crate::intent::TransferIntent;
45

56
#[derive(Debug, Clone, PartialEq, Eq)]
67
pub struct CompletionProof {
@@ -14,7 +15,6 @@ pub struct CompletionProof {
1415

1516
#[derive(Debug, Clone, PartialEq, Eq)]
1617
pub struct EvidenceRef(pub Vec<u8>);
17-
use crate::intent::TransferIntent;
1818

1919
impl CompletionProof {
2020
pub fn validate_against(
@@ -40,7 +40,9 @@ impl CompletionProof {
4040

4141
Ok(())
4242
}
43-
#[cfg(test)]
43+
}
44+
45+
#[cfg(test)]
4446
mod tests {
4547
use super::*;
4648
use crate::intent::{TransferIntent, IntentId, Address, Amount};
@@ -101,4 +103,3 @@ mod tests {
101103
assert_eq!(err, "missing evidence");
102104
}
103105
}
104-

0 commit comments

Comments
 (0)