From c2e38f65562ec70435e317214c02e6cdd231314a Mon Sep 17 00:00:00 2001 From: Harry Kalodner Date: Thu, 28 Apr 2022 01:14:50 -0400 Subject: [PATCH] Fix wasm module check for validator --- validator/nitro_machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/nitro_machine.go b/validator/nitro_machine.go index 2bc8205150..753628f993 100644 --- a/validator/nitro_machine.go +++ b/validator/nitro_machine.go @@ -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