mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 15:31:10 +00:00
BREAKING: Rename Origin (#12258)
* BREAKING: Rename Origin * more renaming * a bit more renaming * fix * more fixing * fix in frame_support * even more fixes * fix * small fix * ... * update .stderr * docs * update docs * update docs * docs
This commit is contained in:
@@ -95,7 +95,7 @@ fn checks_proof() {
|
||||
let proof =
|
||||
build_proof(parent_hash.as_ref(), vec![vec![0u8; MAX_DATA_SIZE as usize]]).unwrap();
|
||||
assert_noop!(
|
||||
TransactionStorage::<Test>::check_proof(Origin::none(), proof,),
|
||||
TransactionStorage::<Test>::check_proof(RuntimeOrigin::none(), proof,),
|
||||
Error::<Test>::UnexpectedProof,
|
||||
);
|
||||
run_to_block(11, || None);
|
||||
@@ -103,13 +103,13 @@ fn checks_proof() {
|
||||
|
||||
let invalid_proof = build_proof(parent_hash.as_ref(), vec![vec![0u8; 1000]]).unwrap();
|
||||
assert_noop!(
|
||||
TransactionStorage::<Test>::check_proof(Origin::none(), invalid_proof,),
|
||||
TransactionStorage::<Test>::check_proof(RuntimeOrigin::none(), invalid_proof,),
|
||||
Error::<Test>::InvalidProof,
|
||||
);
|
||||
|
||||
let proof =
|
||||
build_proof(parent_hash.as_ref(), vec![vec![0u8; MAX_DATA_SIZE as usize]]).unwrap();
|
||||
assert_ok!(TransactionStorage::<Test>::check_proof(Origin::none(), proof));
|
||||
assert_ok!(TransactionStorage::<Test>::check_proof(RuntimeOrigin::none(), proof));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user