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) } }