Skip to content

Commit

Permalink
add Hooks method
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Apr 19, 2024
1 parent de4b07e commit 3cea3d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/evm/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,11 @@ func (k *Keeper) SetHooks(eh types.EvmHooks) *Keeper {
return k
}

// Hooks return the hooks
func (k *Keeper) Hooks() types.EvmHooks{
return k.hooks
}

// PostTxProcessing delegate the call to the hooks. If no hook has been registered, this function returns with a `nil` error
func (k *Keeper) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error {
if k.hooks == nil {
Expand Down

0 comments on commit 3cea3d7

Please sign in to comment.