-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
); | ||
|
||
assert_eq!(Runtime::ensure_inherents_are_first(&block).err().unwrap(), 2); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: those tests are in frame/support/test/tests/pallets.rs
origin_without_generic::Origin | ||
); | ||
assert_eq!(without_generic_variant.encode()[0], 1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
origin tests are in frame/support/test/tests/construct_runtime.rs
#[test] | ||
fn test_codec() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codec test is in frame/support/test/tests/construct_runtime.rs
fn get_module_names() { | ||
let module_names = OuterCall::get_module_names(); | ||
assert_eq!(["Test"], module_names); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those tests are in frame/support/test/tests/construct_runtime.rs
1614d0d
to
a26531c
Compare
#[doc(hidden)] | ||
pub use crate::sp_runtime::transaction_validity::{ | ||
TransactionValidity, UnknownTransaction, TransactionValidityError, TransactionSource, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all those reexport were already hidden, some are used by construct_runtime, some are used by some pallet.
farewell macro rules |
bot merge |
Trying merge. |
Those macro are no longer used, people should rather use construct_runtime, it is some code debt when implementing new functionality in substrate (e.g. metadata changes).