native: fix error message on native cache initialization

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
Anna Shaleva 2024-06-04 18:38:28 +03:00
parent e0825e7665
commit 71d504765f

View file

@ -668,7 +668,7 @@ func (m *Management) OnPersist(ic *interop.Context) error {
// The rest of activating hardforks also require initialization. // The rest of activating hardforks also require initialization.
for _, hf := range currentActiveHFs { for _, hf := range currentActiveHFs {
if err := native.Initialize(ic, &hf, hfSpecificMD); err != nil { 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)
} }
} }