Skip to content

Commit

Permalink
chore(store): check value (backport cosmos#17900) (cosmos#17908)
Browse files Browse the repository at this point in the history
Co-authored-by: Marko <marbar3778@yahoo.com>
  • Loading branch information
2 people authored and mmsqe committed Oct 9, 2023
1 parent 22f68a4 commit a354b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/dbadapter/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func (dsa Store) Has(key []byte) bool {
// Set wraps the underlying DB's Set method panicing on error.
func (dsa Store) Set(key, value []byte) {
types.AssertValidKey(key)
types.AssertValidValue(value)
if err := dsa.DB.Set(key, value); err != nil {
panic(err)
}
Expand Down

0 comments on commit a354b49

Please sign in to comment.