Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1789 from bandprotocol/handle-genesis-validator-msg
Browse files Browse the repository at this point in the history
hotfix: Fix cacher bug on init chain
  • Loading branch information
sorawit authored May 27, 2020
2 parents a4ca2ec + 34159b4 commit bd6facd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chain/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,9 @@ func (b *BandDB) HandleMessage(txHash []byte, msg sdk.Msg, events map[string][]s
default:
panic(fmt.Sprintf("Message %s does not support", msg.Type()))
}
jsonMap["type"] = events["message.action"][0]

if len(events["message.action"]) == 1 {
jsonMap["type"] = events["message.action"][0]
}
return jsonMap, nil
}

Expand Down

0 comments on commit bd6facd

Please sign in to comment.