add asserts in instantseal
This commit is contained in:
parent
90b8b612cc
commit
0b4eef48c5
@ -35,6 +35,8 @@ pub struct InstantSeal {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use serde_json;
|
use serde_json;
|
||||||
|
use hash::Address;
|
||||||
|
use util::hash::H160;
|
||||||
use spec::instant_seal::InstantSeal;
|
use spec::instant_seal::InstantSeal;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -45,6 +47,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
}"#;
|
}"#;
|
||||||
|
|
||||||
let _deserialized: InstantSeal = serde_json::from_str(s).unwrap();
|
let deserialized: InstantSeal = serde_json::from_str(s).unwrap();
|
||||||
|
assert_eq!(deserialized.params.registrar, Some(Address(H160::from("0xc6d9d2cd449a754c494264e1809c50e34d64562b"))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user