mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +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:
@@ -24,7 +24,7 @@ use frame_support::assert_ok;
|
||||
fn timestamp_works() {
|
||||
new_test_ext().execute_with(|| {
|
||||
crate::Now::<Test>::put(46);
|
||||
assert_ok!(Timestamp::set(Origin::none(), 69));
|
||||
assert_ok!(Timestamp::set(RuntimeOrigin::none(), 69));
|
||||
assert_eq!(Timestamp::now(), 69);
|
||||
assert_eq!(Some(69), get_captured_moment());
|
||||
});
|
||||
@@ -35,7 +35,7 @@ fn timestamp_works() {
|
||||
fn double_timestamp_should_fail() {
|
||||
new_test_ext().execute_with(|| {
|
||||
Timestamp::set_timestamp(42);
|
||||
assert_ok!(Timestamp::set(Origin::none(), 69));
|
||||
assert_ok!(Timestamp::set(RuntimeOrigin::none(), 69));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -46,6 +46,6 @@ fn double_timestamp_should_fail() {
|
||||
fn block_period_minimum_enforced() {
|
||||
new_test_ext().execute_with(|| {
|
||||
crate::Now::<Test>::put(44);
|
||||
let _ = Timestamp::set(Origin::none(), 46);
|
||||
let _ = Timestamp::set(RuntimeOrigin::none(), 46);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user