diff --git a/app/app.go b/app/app.go index 984c5003d2..7a3693354c 100644 --- a/app/app.go +++ b/app/app.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "io" + "maps" "os" "path/filepath" "sort" @@ -1156,12 +1157,7 @@ func (app *WasmApp) RegisterNodeService(clientCtx client.Context, cfg config.Con // // NOTE: This is solely to be used for testing purposes. func GetMaccPerms() map[string][]string { - dupMaccPerms := make(map[string][]string) - for k, v := range maccPerms { - dupMaccPerms[k] = v - } - - return dupMaccPerms + return maps.Clone(maccPerms) } // BlockedAddresses returns all the app's blocked account addresses.