From 4cc23fe21376c55aedf94430c358614647514899 Mon Sep 17 00:00:00 2001 From: Redouane Lakrache Date: Tue, 20 Feb 2024 15:53:54 +0100 Subject: [PATCH] chore: base review improvements --- app/genesis.go | 4 +--- e2e/tests/init_test.go | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/genesis.go b/app/genesis.go index e4e849fc2..a3b05bf0c 100644 --- a/app/genesis.go +++ b/app/genesis.go @@ -1,8 +1,6 @@ package app -import ( - "encoding/json" -) +import "encoding/json" // GenesisState of the blockchain is represented here as a map of raw json // messages key'd by a identifier string. diff --git a/e2e/tests/init_test.go b/e2e/tests/init_test.go index 6d98d1a2c..f1bcb422d 100644 --- a/e2e/tests/init_test.go +++ b/e2e/tests/init_test.go @@ -378,10 +378,10 @@ func (s *suite) buildAppMap() { s.Fatalf("error getting application list: %s", err) } s.pocketd.result = res - var resp apptypes.QueryAllApplicationResponse + var resp apptypes.QueryAllApplicationsResponse responseBz := []byte(strings.TrimSpace(res.Stdout)) s.cdc.MustUnmarshalJSON(responseBz, &resp) - for _, app := range resp.Application { + for _, app := range resp.Applications { accNameToAppMap[accAddrToNameMap[app.Address]] = app } }