Fix if --evmonepath was implicitly defined.

If an evmone library was found, it was not possible to change
the used evm1 vm anymore via --vm.
This commit is contained in:
Alexander Arlt 2020-06-15 07:51:35 -05:00
parent 0bcef5ab81
commit 583bbbb5a4

View File

@ -141,7 +141,7 @@ bool CommonOptions::parse(int argc, char const* const* argv)
throw std::runtime_error(errorMessage.str());
}
if (!evmonePath.empty())
if (!evmonePath.empty() && vmPaths.empty())
vmPaths.emplace_back(evmonePath);
return true;