From cbcbf0ccd463a71b79be3f331d6583f422d62dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Mon, 26 Feb 2024 10:41:43 +0100 Subject: [PATCH] added signing authority (dao) to the keeper to enable dao signing checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- app/app.go | 1 + x/machine/keeper/keeper.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/app.go b/app/app.go index a970c25..ad6d9f3 100644 --- a/app/app.go +++ b/app/app.go @@ -548,6 +548,7 @@ func New( keys[machinemoduletypes.AddressIndexKey], keys[machinemoduletypes.MemStoreKey], app.GetSubspace(machinemoduletypes.ModuleName), + authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) machineModule := machinemodule.NewAppModule(appCodec, app.MachineKeeper, app.AccountKeeper, app.BankKeeper) diff --git a/x/machine/keeper/keeper.go b/x/machine/keeper/keeper.go index 56c5cb0..499b9d4 100644 --- a/x/machine/keeper/keeper.go +++ b/x/machine/keeper/keeper.go @@ -21,6 +21,7 @@ type ( addressIndexStoreKey storetypes.StoreKey memKey storetypes.StoreKey paramstore paramtypes.Subspace + authority string } ) @@ -34,6 +35,7 @@ func NewKeeper( addressIndexStoreKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, + authority string, ) *Keeper { // set KeyTable if it has not already been set if !ps.HasKeyTable() {