mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
Companion for 9619 (Private Events) (#3712)
* update runtime api * use storage_prefix * update read_events_no_consensus * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+153
-153
File diff suppressed because it is too large
Load Diff
@@ -289,7 +289,7 @@ where
|
|||||||
{
|
{
|
||||||
use inclusion::Event as RawEvent;
|
use inclusion::Event as RawEvent;
|
||||||
|
|
||||||
<frame_system::Pallet<T>>::events()
|
<frame_system::Pallet<T>>::read_events_no_consensus()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(|record| extract_event(record.event))
|
.filter_map(|record| extract_event(record.event))
|
||||||
.map(|event| match event {
|
.map(|event| match event {
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! {
|
|||||||
TransactionStatus::Ready | TransactionStatus::Broadcast(_) | TransactionStatus::Future => continue,
|
TransactionStatus::Ready | TransactionStatus::Broadcast(_) | TransactionStatus::Future => continue,
|
||||||
TransactionStatus::InBlock(hash) => {
|
TransactionStatus::InBlock(hash) => {
|
||||||
log::info!(target: LOG_TARGET, "included at {:?}", hash);
|
log::info!(target: LOG_TARGET, "included at {:?}", hash);
|
||||||
let key = sp_core::storage::StorageKey(frame_system::Events::<Runtime>::hashed_key().to_vec());
|
let key = frame_support::storage::storage_prefix(b"System", b"Events");
|
||||||
let events =get_storage::<
|
let events =get_storage::<
|
||||||
Vec<frame_system::EventRecord<Event, <Block as BlockT>::Hash>>
|
Vec<frame_system::EventRecord<Event, <Block as BlockT>::Hash>>
|
||||||
>(client, params!{ key, hash }).await?.unwrap_or_default();
|
>(client, params!{ key, hash }).await?.unwrap_or_default();
|
||||||
|
|||||||
Reference in New Issue
Block a user