refactor: make ExtrinsicEvents::new public for external access (#1933)

This commit is contained in:
Alex Bean authored and GitHub committed 2025-02-25 14:28:01 +00:00
1 parent 396762510a
commit 72f8e0372e
1 file changed
+3 -1
+3 -1
View File
@@ -278,7 +278,9 @@ pub struct ExtrinsicEvents<T: Config> {
}
impl<T: Config> ExtrinsicEvents<T> {
pub(crate) fn new(ext_hash: T::Hash, idx: u32, events: events::Events<T>) -> Self {
/// Creates a new instance of `ExtrinsicEvents`.
#[doc(hidden)]
pub fn new(ext_hash: T::Hash, idx: u32, events: events::Events<T>) -> Self {
Self {
ext_hash,
idx,