Skip to content

Commit

Permalink
Fix wasm module check for validator
Browse files Browse the repository at this point in the history
  • Loading branch information
hkalodner committed Apr 28, 2022
1 parent f7c1601 commit c2e38f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/nitro_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (l *NitroMachineLoader) createMachineImpl(moduleRoot common.Hash, untilHost
return nil, err
}
} else {
_, err := os.Stat(filepath.Join(l.config.getMachinePath(moduleRoot), l.config.ProverBinPath))
_, err := os.Stat(filepath.Join(l.config.getMachinePath(moduleRoot), l.config.WavmBinaryPath))
if errors.Is(err, os.ErrNotExist) {
// Attempt to load the latest module root instead (maybe it's what we're looking for).
originalErr := err
Expand Down

0 comments on commit c2e38f6

Please sign in to comment.