mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Propagate message verification errors (#2114)
* Propagate message verification errors * Replace parse_finalized_storage_proof() with storage_proof_checker() * small fixes * fix comment
This commit is contained in:
committed by
Bastian Köcher
parent
c490222fc6
commit
56d4013878
@@ -1212,11 +1212,8 @@ mod tests {
|
||||
fn parse_finalized_storage_proof_rejects_proof_on_unknown_header() {
|
||||
run_test(|| {
|
||||
assert_noop!(
|
||||
Pallet::<TestRuntime>::parse_finalized_storage_proof(
|
||||
Default::default(),
|
||||
vec![],
|
||||
|_| (),
|
||||
),
|
||||
Pallet::<TestRuntime>::storage_proof_checker(Default::default(), vec![],)
|
||||
.map(|_| ()),
|
||||
bp_header_chain::HeaderChainError::UnknownHeader,
|
||||
);
|
||||
});
|
||||
@@ -1235,8 +1232,7 @@ mod tests {
|
||||
<ImportedHeaders<TestRuntime>>::insert(hash, header.build());
|
||||
|
||||
assert_ok!(
|
||||
Pallet::<TestRuntime>::parse_finalized_storage_proof(hash, storage_proof, |_| (),),
|
||||
(),
|
||||
Pallet::<TestRuntime>::storage_proof_checker(hash, storage_proof).map(|_| ())
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user