From 71d504765fea44d114f0e97cc3bf2b41747d8cfb Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Tue, 4 Jun 2024 18:38:28 +0300 Subject: [PATCH] native: fix error message on native cache initialization Signed-off-by: Anna Shaleva --- pkg/core/native/management.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/native/management.go b/pkg/core/native/management.go index 2633f6f8a..7dd710b04 100644 --- a/pkg/core/native/management.go +++ b/pkg/core/native/management.go @@ -668,7 +668,7 @@ func (m *Management) OnPersist(ic *interop.Context) error { // The rest of activating hardforks also require initialization. for _, hf := range currentActiveHFs { if err := native.Initialize(ic, &hf, hfSpecificMD); err != nil { - return fmt.Errorf("initializing %s native contract at HF %d: %w", md.Name, activeIn, err) + return fmt.Errorf("initializing %s native contract at HF %d: %w", md.Name, hf, err) } }