chore(store): check value (#17900)

This commit is contained in:
Marko
2023-09-27 13:09:55 +00:00
committed by GitHub
parent 6ac0abde37
commit 337b3fed79
+1
View File
@@ -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)
}