Skip to content

Commit 1eb8573

Browse files
committed
fixup! [libevmasm] Add support to import evm assembly json.
1 parent 93c96db commit 1eb8573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

solc/CommandLineParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,13 +1053,13 @@ void CommandLineParser::processArgs()
10531053
"srcmap-runtime",
10541054
};
10551055

1056-
for (auto const& option: m_args)
1057-
if (!option.second.defaulted() && !supportedByEvmAsmJsonImport.count(option.first))
1056+
for (auto const& [optionName, optionValue]: m_args)
1057+
if (!optionValue.defaulted() && !supportedByEvmAsmJsonImport.count(optionName))
10581058
solThrow(
10591059
CommandLineValidationError,
10601060
fmt::format(
10611061
"Option --{} is not supported with --{}.",
1062-
option.first,
1062+
optionName,
10631063
g_strImportEvmAssemblerJson
10641064
)
10651065
);

0 commit comments

Comments
 (0)