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
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Currently there is a pre_dispatch hook to do additional work before transaction is dispatched. It will be useful to have a post_dispatch hook to do additional work after transaction is successfully dispatched.
My use case is to implement a fees module that emit fees.Charged(Amount) event to notify how much transaction fee is been charged in this transaction. This have to be in post_dispatch because modules may charge additional fee (balances create account) or refund fee (contracts refund gas fee).
Currently there is a
pre_dispatchhook to do additional work before transaction is dispatched. It will be useful to have apost_dispatchhook to do additional work after transaction is successfully dispatched.My use case is to implement a fees module that emit
fees.Charged(Amount)event to notify how much transaction fee is been charged in this transaction. This have to be inpost_dispatchbecause modules may charge additional fee (balances create account) or refund fee (contracts refund gas fee).