From 261816d7a5431fdfc22203615f7cf3c8d774ab8d Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 4 Jun 2024 18:41:56 +0300 Subject: [PATCH] interop: improve error message on native cache initialization error Signed-off-by: Anna Shaleva --- pkg/core/interop/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/interop/context.go b/pkg/core/interop/context.go index 7404efa66..1069dd179 100644 --- a/pkg/core/interop/context.go +++ b/pkg/core/interop/context.go @@ -247,7 +247,7 @@ func (c *ContractMD) HFSpecificContractMD(hf *config.Hardfork) *HFSpecificContra } md, ok := c.mdCache[key] if !ok { - panic(fmt.Errorf("native contract descriptor cache is not initialized: contract %s, hardfork %s", c.Hash.StringLE(), key)) + panic(fmt.Errorf("native contract descriptor cache is not initialized: contract %s (%s), hardfork %s", c.Hash.StringLE(), c.Name, key)) } if md == nil { panic(fmt.Errorf("native contract descriptor cache is nil: contract %s, hardfork %s", c.Hash.StringLE(), key))