[libevmasm] EVM Assembly JSON Export: add subobject index.

This commit is contained in:
Alexander Arlt 2023-06-21 11:01:57 +02:00
parent 385142e805
commit 2ffa8aa57a

View File

@ -495,6 +495,7 @@ Json::Value Assembly::assemblyJSON(std::vector<std::string> const& _sources, boo
stringstream hexStr;
hexStr << hex << i;
data[hexStr.str()] = m_subs[i]->assemblyJSON(_sources, false);
data[hexStr.str()]["index"] = static_cast<int>(i);
}
}