core: fix HasStorage check in storageGetContext

It was returning nil which is wrong.
This commit is contained in:
Roman Khimov 2020-06-20 00:04:28 +03:00
parent f1cdcbc99c
commit a2cd2264a8

View file

@ -301,7 +301,7 @@ func storageGetContext(ic *interop.Context, v *vm.VM) error {
return err
}
if !contract.HasStorage() {
return err
return errors.New("contract is not allowed to use storage")
}
sc := &StorageContext{
ID: contract.ID,