Fix tests build
This commit is contained in:
parent
5a2f76845d
commit
3662224093
1 changed files with 6 additions and 3 deletions
|
@ -134,7 +134,10 @@ fn write_proof_to_file(proof_file: PathBuf, proof: RawCwProof) -> Result<(), Box
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use cw_proof::proof::{cw::RawCwProof, Proof};
|
||||
use cw_proof::proof::{
|
||||
cw::{CwProof, RawCwProof},
|
||||
Proof,
|
||||
};
|
||||
use tendermint_rpc::endpoint::abci_query::AbciQuery;
|
||||
|
||||
#[test]
|
||||
|
@ -172,7 +175,7 @@ mod tests {
|
|||
.expect("hardcoded response does not include proof");
|
||||
let root = "25a8b485e0ff095f7b60a1aab837d65756c9a4cdc216bae7ba9c59b3fb28fbec";
|
||||
|
||||
proof
|
||||
CwProof::from(proof)
|
||||
.verify(hex::decode(root).expect("invalid hex"))
|
||||
.expect("");
|
||||
}
|
||||
|
@ -212,7 +215,7 @@ mod tests {
|
|||
.expect("hardcoded response does not include proof");
|
||||
let root = "632612de75657f50bbb769157bf0ef8dd417409b367b0204bbda4529ab2b2d4f";
|
||||
|
||||
proof
|
||||
CwProof::from(proof)
|
||||
.verify(hex::decode(root).expect("invalid hex"))
|
||||
.expect("");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue