core: add contract hash into the error output for checkStorageContext()
Makes debugging things easier.
This commit is contained in:
parent
64e20508e0
commit
5e8122bfac
1 changed files with 1 additions and 1 deletions
|
@ -391,7 +391,7 @@ func (ic *interopContext) checkStorageContext(stc *StorageContext) error {
|
||||||
return errors.New("no contract found")
|
return errors.New("no contract found")
|
||||||
}
|
}
|
||||||
if !contract.HasStorage() {
|
if !contract.HasStorage() {
|
||||||
return errors.New("contract can't have storage")
|
return fmt.Errorf("contract %s can't use storage", stc.ScriptHash)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue