cosmos-sdk/x/gov/keeper/internal_test.go

11 lines
287 B
Go

package keeper
import "github.com/cosmos/cosmos-sdk/x/gov/types"
// UnsafeSetHooks updates the gov keeper's hooks, overriding any potential
// pre-existing hooks.
// WARNING: this function should only be used in tests.
func UnsafeSetHooks(k *Keeper, h types.GovHooks) {
k.hooks = h
}