mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[libevmasm] EVM Assembly JSON Export: add subobject index.
This commit is contained in:
parent
385142e805
commit
2ffa8aa57a
@ -495,6 +495,7 @@ Json::Value Assembly::assemblyJSON(std::vector<std::string> const& _sources, boo
|
|||||||
stringstream hexStr;
|
stringstream hexStr;
|
||||||
hexStr << hex << i;
|
hexStr << hex << i;
|
||||||
data[hexStr.str()] = m_subs[i]->assemblyJSON(_sources, false);
|
data[hexStr.str()] = m_subs[i]->assemblyJSON(_sources, false);
|
||||||
|
data[hexStr.str()]["index"] = static_cast<int>(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user