Skip to content

Commit

Permalink
Merge pull request #2338 from OffchainLabs/allowed-roots-0x-prefix
Browse files Browse the repository at this point in the history
Allow 0x prefix for allowed-wasm-module-roots flag
  • Loading branch information
PlasmaPower authored May 24, 2024
2 parents 620dde1 + dd27ef1 commit 5466cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nitro/nitro.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func mainImpl() int {
if len(allowedWasmModuleRoots) > 0 {
moduleRootMatched := false
for _, root := range allowedWasmModuleRoots {
bytes, err := hex.DecodeString(root)
bytes, err := hex.DecodeString(strings.TrimPrefix(root, "0x"))
if err == nil {
if common.HexToHash(root) == common.BytesToHash(bytes) {
moduleRootMatched = true
Expand Down

0 comments on commit 5466cfa

Please sign in to comment.