mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 10:21:05 +00:00
Make Dispatchable return the actual weight consumed (#5458)
* Make Dispatchable return the actual weight consumed
Add PostInfo associated type to Dispatchable and have frame implement
Dispatchable { type PostInfo = PostDispatchInfo } where PostDispatchInfo
contains the actual weight consumed.
* Fix whitespace issues in docs
This commit is contained in:
committed by
GitHub
parent
14505471ee
commit
8f819f4ba6
@@ -150,7 +150,11 @@ decl_module! {
|
||||
Lookup::<T>::remove(id);
|
||||
}
|
||||
}
|
||||
Self::deposit_event(RawEvent::Dispatched((now, index), maybe_id, r));
|
||||
Self::deposit_event(RawEvent::Dispatched(
|
||||
(now, index),
|
||||
maybe_id,
|
||||
r.map(|_| ()).map_err(|e| e.error)
|
||||
));
|
||||
result = cumulative_weight;
|
||||
None
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user