cosmos-sdk/testutil/x/counter/keeper/hooks.go

15 lines
209 B
Go

package keeper
import (
"context"
)
type Hooks struct {
AfterCounterIncreased bool
}
func (h *Hooks) AfterIncreaseCount(ctx context.Context, n int64) error {
h.AfterCounterIncreased = true
return nil
}