mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix up rvalue references. Avoid a copy of an EVM code in ExtVM.
This commit is contained in:
parent
c7628aace0
commit
befbeba512
@ -199,10 +199,10 @@ void ImportTest::importState(json_spirit::mObject& _o, State& _state, stateOptio
|
||||
stateOptions.m_bHasCode = true;
|
||||
}
|
||||
|
||||
if (code.size())
|
||||
if (!code.empty())
|
||||
{
|
||||
_state.m_cache[address] = Account(balance, Account::ContractConception);
|
||||
_state.m_cache[address].setCode(code);
|
||||
_state.m_cache[address].setCode(std::move(code));
|
||||
}
|
||||
else
|
||||
_state.m_cache[address] = Account(balance, Account::NormalCreation);
|
||||
|
Loading…
Reference in New Issue
Block a user