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:
Sergej Sakac
2022-09-21 00:13:09 +02:00
committed by GitHub
parent 986d20b352
commit e4b6f4a66d
221 changed files with 5233 additions and 4200 deletions
@@ -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));
});
}