forked from TrueCloudLab/neoneo-go
core: fix HasStorage check in storageGetContext
It was returning nil which is wrong.
This commit is contained in:
parent
f1cdcbc99c
commit
a2cd2264a8
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ func storageGetContext(ic *interop.Context, v *vm.VM) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !contract.HasStorage() {
|
if !contract.HasStorage() {
|
||||||
return err
|
return errors.New("contract is not allowed to use storage")
|
||||||
}
|
}
|
||||||
sc := &StorageContext{
|
sc := &StorageContext{
|
||||||
ID: contract.ID,
|
ID: contract.ID,
|
||||||
|
|
Loading…
Reference in a new issue