From 9f5460a359ae789cf50fcc086abebe34f38b1de1 Mon Sep 17 00:00:00 2001 From: beer-1 Date: Fri, 8 Nov 2024 21:32:32 +0900 Subject: [PATCH] wip --- app/upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/upgrade.go b/app/upgrade.go index 7ad7ad3..a7fd646 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -66,7 +66,7 @@ func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) { // runtime code initCodeOP := common.Hex2Bytes("5ff3fe") initCodePos := bytes.Index(code, initCodeOP) - code = code[initCodePos:] + code = code[initCodePos+3:] // code hash codeHash := crypto.Keccak256Hash(code).Bytes()