Skip to content

Commit 5dcbea7

Browse files
committed
Add missing m_ prefix to CommonOptions::evmVersionString
1 parent 4042da7 commit 5dcbea7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/Common.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ CommonOptions::CommonOptions(std::string _caption):
110110
void CommonOptions::addOptions()
111111
{
112112
options.add_options()
113-
("evm-version", po::value(&evmVersionString), "which EVM version to use")
113+
("evm-version", po::value(&m_evmVersionString), "which EVM version to use")
114114
// "eof-version" is declared as uint64_t, since uint8_t will be parsed as character by boost.
115115
("eof-version", po::value<uint64_t>()->implicit_value(1u), "which EOF version to use")
116116
("testpath", po::value<fs::path>(&this->testPath)->default_value(test::testPath()), "path to test files")
@@ -259,11 +259,11 @@ void CommonOptions::printSelectedOptions(std::ostream& _stream, std::string cons
259259

260260
langutil::EVMVersion CommonOptions::evmVersion() const
261261
{
262-
if (!evmVersionString.empty())
262+
if (!m_evmVersionString.empty())
263263
{
264-
auto version = langutil::EVMVersion::fromString(evmVersionString);
264+
auto version = langutil::EVMVersion::fromString(m_evmVersionString);
265265
if (!version)
266-
BOOST_THROW_EXCEPTION(std::runtime_error("Invalid EVM version: " + evmVersionString));
266+
BOOST_THROW_EXCEPTION(std::runtime_error("Invalid EVM version: " + m_evmVersionString));
267267
return *version;
268268
}
269269
else

test/Common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct CommonOptions
9797
boost::program_options::options_description options;
9898

9999
private:
100-
std::string evmVersionString;
100+
std::string m_evmVersionString;
101101
std::optional<uint8_t> m_eofVersion;
102102
static std::unique_ptr<CommonOptions const> m_singleton;
103103
};

0 commit comments

Comments
 (0)