Skip to content

Commit 3cea3d7

Browse files
author
Dreamer
committed
add Hooks method
1 parent de4b07e commit 3cea3d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x/evm/keeper/keeper.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ func (k *Keeper) SetHooks(eh types.EvmHooks) *Keeper {
259259
return k
260260
}
261261

262+
// Hooks return the hooks
263+
func (k *Keeper) Hooks() types.EvmHooks{
264+
return k.hooks
265+
}
266+
262267
// PostTxProcessing delegate the call to the hooks. If no hook has been registered, this function returns with a `nil` error
263268
func (k *Keeper) PostTxProcessing(ctx sdk.Context, msg core.Message, receipt *ethtypes.Receipt) error {
264269
if k.hooks == nil {

0 commit comments

Comments
 (0)