From b6542e0d02267506417f8ee9891dc4333afeaf47 Mon Sep 17 00:00:00 2001 From: vimystic <122659254+vimystic@users.noreply.github.com> Date: Tue, 3 Oct 2023 10:33:58 -0600 Subject: [PATCH] (Sorry) . There was a rouge block I forgot to remove --- x/mailbox/keeper/genesis_test.go | 5 +++-- x/mailbox/keeper/msg_server.go | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/x/mailbox/keeper/genesis_test.go b/x/mailbox/keeper/genesis_test.go index 28a0738..789ffba 100644 --- a/x/mailbox/keeper/genesis_test.go +++ b/x/mailbox/keeper/genesis_test.go @@ -10,8 +10,8 @@ import ( ) func (suite *KeeperTestSuite) TestGenesis() { - idMap := make([]string, 129) - for i := 0; i < 129; i++ { + idMap := make([]string, 128) + for i := 0; i < 128; i++ { sender := "cosmos14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9s4hmalr" recipientBech32 := "cosmos10qa7yajp3fp869mdegtpap5zg056exja3chkw5" recipientBytes := sdk.MustAccAddressFromBech32(recipientBech32).Bytes() @@ -47,6 +47,7 @@ func (suite *KeeperTestSuite) TestGenesis() { } func countPopulatedSlices(arr [32][]byte) int { + fmt.Printf("%+v", arr) count := 0 for _, slice := range arr { if len(slice) > 0 { diff --git a/x/mailbox/keeper/msg_server.go b/x/mailbox/keeper/msg_server.go index ec46d5d..6b164ab 100644 --- a/x/mailbox/keeper/msg_server.go +++ b/x/mailbox/keeper/msg_server.go @@ -106,11 +106,6 @@ func (k *Keeper) Dispatch(goCtx context.Context, msg *types.MsgDispatch) (*types k.Branch = branch } - err = k.Tree.Insert(id) - if err != nil { - return nil, err - } - // Emit the events ctx.EventManager().EmitEvents(sdk.Events{ sdk.NewEvent(