mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
core: extend error text for storage context in dynamic script
This commit is contained in:
parent
0ceae612c6
commit
6d3cc0f7e7
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func GetReadOnlyContext(ic *interop.Context) error {
|
|||
func getContextInternal(ic *interop.Context, isReadOnly bool) error {
|
||||
contract, err := ic.GetContract(ic.VM.GetCurrentScriptHash())
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf("storage context can not be retrieved in dynamic scripts: %w", err)
|
||||
}
|
||||
sc := &Context{
|
||||
ID: contract.ID,
|
||||
|
|
Loading…
Reference in a new issue