* Update gov tx usage * Update proto * make proto-gen * Add deposit test * Rename test function * More audits * Update x/gov/keeper/internal_test.go * Update x/gov/spec/01_concepts.md Co-authored-by: atheeshp <59333759+atheeshp@users.noreply.github.com>
11 lines
287 B
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
|
|
}
|