mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add notes about temporary changes
This commit is contained in:
parent
bc119e2522
commit
5ed7600130
@ -777,6 +777,7 @@ LinkerObject const& Assembly::assemble() const
|
||||
auto dataLength = ret.bytecode.size() - dataStart;
|
||||
if (m_eofVersion.has_value())
|
||||
{
|
||||
// Note: Temporary solution to current evmone requirement of non-empty data section.
|
||||
if (dataLength == 0)
|
||||
{
|
||||
ret.bytecode.push_back(0);
|
||||
|
@ -63,7 +63,9 @@ public:
|
||||
{
|
||||
bytes bytecode = multiSourceCompileContract(_sourceCode, _sourceName, _contractName, _libraryAddresses);
|
||||
|
||||
if (bytecode.size() > 0)
|
||||
// Note: Temporary solution that adds arguments size in the EOF data_section_size header to validate evmone implementation.
|
||||
// TODO: Validate header and version.
|
||||
if (bytecode.size() > 3)
|
||||
{
|
||||
if (bytecode[0] == uint8_t(0xef) && bytecode[1] == uint8_t(00)) // is EOF
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user