We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ce01a1 commit 9dd0508Copy full SHA for 9dd0508
src/proof.rs
@@ -1,6 +1,7 @@
1
// src/proof.rs
2
3
use crate::intent::{IntentId, Address, Amount};
4
+use crate::intent::TransferIntent;
5
6
#[derive(Debug, Clone, PartialEq, Eq)]
7
pub struct CompletionProof {
@@ -14,7 +15,6 @@ pub struct CompletionProof {
14
15
16
17
pub struct EvidenceRef(pub Vec<u8>);
-use crate::intent::TransferIntent;
18
19
impl CompletionProof {
20
pub fn validate_against(
@@ -40,7 +40,9 @@ impl CompletionProof {
40
41
Ok(())
42
}
43
- #[cfg(test)]
+}
44
+
45
+#[cfg(test)]
46
mod tests {
47
use super::*;
48
use crate::intent::{TransferIntent, IntentId, Address, Amount};
@@ -101,4 +103,3 @@ mod tests {
101
103
assert_eq!(err, "missing evidence");
102
104
105
-
0 commit comments