mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-05 03:58:23 +00:00
dao: prevent double serialization of StorageItems
Converting to MPT value serializes the StorageItem, so it makes no sense doing it again.
This commit is contained in:
parent
f77c239296
commit
685d3eb870
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ func (dao *Simple) PutStorageItem(scripthash util.Uint160, key []byte, si *state
|
|||
if err := dao.MPT.Put(k, v); err != nil && err != mpt.ErrNotFound {
|
||||
return err
|
||||
}
|
||||
return dao.Put(si, stKey)
|
||||
return dao.Store.Put(stKey, v[1:])
|
||||
}
|
||||
|
||||
// DeleteStorageItem drops storage item for the given script with the
|
||||
|
|
Loading…
Reference in a new issue