mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 16:17:59 +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:
@@ -45,7 +45,7 @@ parameter_types! {
|
||||
|
||||
impl frame_system::Config for Test {
|
||||
type BaseCallFilter = frame_support::traits::Everything;
|
||||
type Origin = Origin;
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type PalletInfo = PalletInfo;
|
||||
type Index = u64;
|
||||
@@ -76,8 +76,8 @@ fn test_pub(n: u8) -> sp_core::sr25519::Public {
|
||||
sp_core::sr25519::Public::from_raw([n; 32])
|
||||
}
|
||||
|
||||
fn test_origin(n: u8) -> Origin {
|
||||
Origin::signed(test_pub(n))
|
||||
fn test_origin(n: u8) -> RuntimeOrigin {
|
||||
RuntimeOrigin::signed(test_pub(n))
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -103,7 +103,7 @@ fn it_can_enlist() {
|
||||
},
|
||||
];
|
||||
|
||||
Example::enlist_participants(Origin::signed(test_pub(1)), participants)
|
||||
Example::enlist_participants(RuntimeOrigin::signed(test_pub(1)), participants)
|
||||
.expect("Failed to enlist");
|
||||
|
||||
assert_eq!(Example::participants().len(), 2);
|
||||
|
||||
Reference in New Issue
Block a user