Skip to content

Commit d762405

Browse files
committed
libevmasm: refactor asm-json export & add support for source list.
1 parent 1a0988e commit d762405

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libevmasm/Assembly.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ Json::Value Assembly::assemblyJSON(map<string, unsigned> const& _sourceIndices,
272272
{
273273
root["sourceList"] = Json::arrayValue;
274274
Json::Value& jsonSourceList = root["sourceList"];
275+
vector<string> sourceNames(_sourceIndices.size());
275276
for (auto const& [name, index]: _sourceIndices)
276277
jsonSourceList[index] = name;
277278
}

0 commit comments

Comments
 (0)