From 6d3cc0f7e72465ebe3cf2ca620e24bf64ffb792a Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Mon, 28 Nov 2022 11:44:24 +0300 Subject: [PATCH] core: extend error text for storage context in dynamic script --- pkg/core/interop/storage/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interop/storage/basic.go b/pkg/core/interop/storage/basic.go index a3cd1db63..3029af183 100644 --- a/pkg/core/interop/storage/basic.go +++ b/pkg/core/interop/storage/basic.go @@ -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,