Skip to content

Commit

Permalink
native: fix error message on native cache initialization
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Jul 15, 2024
1 parent 6dee578 commit 03c29e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/native/management.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 03c29e0

Please sign in to comment.