You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like that having the post_disptach constraints is not compatible with the constraints on the pallet extrinsic. There might be a way to accomplish this by pulling all checks outside of the pallet and into the runtime and just call them from Config.
Details
CheckWeight implement post_dispatch which needs to be executed on passkey proxy call
some related code
/// Post dispatch call/// WARNING: It is dangerous to return an error here. To do so will fundamentally invalidate the/// transaction and any block that it is included in, causing the block author to not be/// compensated for their work in validating the transaction or producing the block so far.pubfnpost_dispatch(payload:&PasskeyPayload<T>,post_info:&PostDispatchInfoOf<<Tas frame_system::Config>::RuntimeCall>,) -> Result<(),TransactionValidityError>{let some_call:Box<<TasConfig>::RuntimeCall> = payload.clone().passkey_call.call;// we are only using the dispatch info for the inner call since the overhead would always be// the same, and we don't need to include it herelet info = &some_call.get_dispatch_info();CheckWeight::<T>::post_dispatch(None,&info, post_info,0,&DispatchResult::Ok(()))}
Searched for Related Issues
I have done a search for related issues and either found none, or noted them
The text was updated successfully, but these errors were encountered:
# Goal
The goal of this PR is <!-- insert goal here -->
Related to #2032
# Discussion
- Checks the blocks limits
- The `post_dispatch` is not added to the extrinsic yet due to
constraint complications but it will be done a different PR related
ticket #2063
# Checklist
- [x] Chain spec updated
- [x] Tests added
- [x] Weights updated
Feature Description
It looks like that having the
post_disptach
constraints is not compatible with the constraints on the pallet extrinsic. There might be a way to accomplish this by pulling all checks outside of the pallet and into the runtime and just call them from Config.Details
CheckWeight implement post_dispatch which needs to be executed on passkey proxy call
some related code
Searched for Related Issues
The text was updated successfully, but these errors were encountered: