mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +00:00
Add pallet names to Events (#10296)
* chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: add pallet names to events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * chore: formatted pallet name changes in events * fix: add fix to tests for event variants * chore: modified comments for event variants * chore: modified comments for event variants * chore: modified comments for event variants * chore: modified comments for event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: modified system pallet event variants * chore: updated transaction-storage pallet event variants * chore: updated transaction-storage pallet event variants * chore: formatted contracts pallet * chore: update treasury event variants
This commit is contained in:
@@ -115,8 +115,8 @@ pub mod pallet {
|
||||
BatchCompleted,
|
||||
/// A single item within a Batch of dispatches has completed with no error.
|
||||
ItemCompleted,
|
||||
/// A call was dispatched. \[result\]
|
||||
DispatchedAs(DispatchResult),
|
||||
/// A call was dispatched.
|
||||
DispatchedAs { result: DispatchResult },
|
||||
}
|
||||
|
||||
// Align the call size to 1KB. As we are currently compiling the runtime for native/wasm
|
||||
@@ -380,7 +380,9 @@ pub mod pallet {
|
||||
|
||||
let res = call.dispatch_bypass_filter((*as_origin).into());
|
||||
|
||||
Self::deposit_event(Event::DispatchedAs(res.map(|_| ()).map_err(|e| e.error)));
|
||||
Self::deposit_event(Event::DispatchedAs {
|
||||
result: res.map(|_| ()).map_err(|e| e.error),
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user