Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Error check will occur in Set
Browse files Browse the repository at this point in the history
  • Loading branch information
vimystic committed Sep 28, 2023
1 parent 35f1652 commit ba518f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x/mailbox/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ func (k *Keeper) InitGenesis(ctx sdk.Context, gs *types.GenesisState) error {
return nil
}

func (k *Keeper) StoreBranch(ctx sdk.Context, index uint32, message []byte) error {
func (k *Keeper) StoreBranch(ctx sdk.Context, index uint32, message []byte) {
store := ctx.KVStore(k.storeKey)
key := fmt.Sprintf("imt/%s", strconv.FormatUint(uint64(index), 10))
key := fmt.Sprintf("imt/%d", index)
store.Set([]byte(key), message)
return nil
}

func (k *Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState {
Expand Down

0 comments on commit ba518f7

Please sign in to comment.