dao: restrict GetStorageItems by prefix
All storage items can still be retrived via zero-length prefix.
This commit is contained in:
parent
776bd85ded
commit
503442a60d
5 changed files with 10 additions and 10 deletions
|
@ -561,7 +561,7 @@ func (ic *interopContext) contractDestroy(v *vm.VM) error {
|
|||
return err
|
||||
}
|
||||
if cs.HasStorage() {
|
||||
siMap, err := ic.dao.GetStorageItems(hash)
|
||||
siMap, err := ic.dao.GetStorageItems(hash, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue