added signing authority (dao) to the keeper to enable dao signing checks

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-02-26 10:41:43 +01:00
parent 412e15449b
commit cbcbf0ccd4
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View File

@ -548,6 +548,7 @@ func New(
keys[machinemoduletypes.AddressIndexKey], keys[machinemoduletypes.AddressIndexKey],
keys[machinemoduletypes.MemStoreKey], keys[machinemoduletypes.MemStoreKey],
app.GetSubspace(machinemoduletypes.ModuleName), app.GetSubspace(machinemoduletypes.ModuleName),
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
) )
machineModule := machinemodule.NewAppModule(appCodec, app.MachineKeeper, app.AccountKeeper, app.BankKeeper) machineModule := machinemodule.NewAppModule(appCodec, app.MachineKeeper, app.AccountKeeper, app.BankKeeper)

View File

@ -21,6 +21,7 @@ type (
addressIndexStoreKey storetypes.StoreKey addressIndexStoreKey storetypes.StoreKey
memKey storetypes.StoreKey memKey storetypes.StoreKey
paramstore paramtypes.Subspace paramstore paramtypes.Subspace
authority string
} }
) )
@ -34,6 +35,7 @@ func NewKeeper(
addressIndexStoreKey, addressIndexStoreKey,
memKey storetypes.StoreKey, memKey storetypes.StoreKey,
ps paramtypes.Subspace, ps paramtypes.Subspace,
authority string,
) *Keeper { ) *Keeper {
// set KeyTable if it has not already been set // set KeyTable if it has not already been set
if !ps.HasKeyTable() { if !ps.HasKeyTable() {