From 5e8122bfac212ea6dc46e68d751e5450e43817f5 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 14 Nov 2019 16:09:24 +0300 Subject: [PATCH] core: add contract hash into the error output for checkStorageContext() Makes debugging things easier. --- pkg/core/interop_system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interop_system.go b/pkg/core/interop_system.go index 51aa4ed77..70bb85bbb 100644 --- a/pkg/core/interop_system.go +++ b/pkg/core/interop_system.go @@ -391,7 +391,7 @@ func (ic *interopContext) checkStorageContext(stc *StorageContext) error { return errors.New("no contract found") } if !contract.HasStorage() { - return errors.New("contract can't have storage") + return fmt.Errorf("contract %s can't use storage", stc.ScriptHash) } return nil }