Skip to content

Commit 7656a78

Browse files
Merge pull request OffchainLabs#3320 from OffchainLabs/fix-allowed-module-roots-check
fix allowed wasm module roots check
2 parents 9149d9b + 9989185 commit 7656a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/nitro/nitro.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ func checkWasmModuleRootCompatibility(ctx context.Context, wasmConfig valnode.Wa
11061106
for _, root := range allowedWasmModuleRoots {
11071107
bytes, err := hex.DecodeString(strings.TrimPrefix(root, "0x"))
11081108
if err == nil {
1109-
if common.HexToHash(root) == common.BytesToHash(bytes) {
1109+
if common.BytesToHash(bytes) == moduleRoot {
11101110
moduleRootMatched = true
11111111
break
11121112
}

0 commit comments

Comments
 (0)