core: fix storage.Delete price

This commit is contained in:
Anna Shaleva 2021-03-19 18:57:00 +03:00
parent 0bca63b907
commit 5b18f5974f
2 changed files with 1 additions and 2 deletions

View file

@ -69,7 +69,6 @@ func storageDelete(ic *interop.Context) error {
if stc.ReadOnly {
return errors.New("StorageContext is read only")
}
ic.VM.AddGas(ic.Chain.GetPolicer().GetStoragePrice())
key := ic.VM.Estack().Pop().Bytes()
return ic.DAO.DeleteStorageItem(stc.ID, key)
}