mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Cleanup of vector_ref.h
This commit is contained in:
@@ -38,7 +38,7 @@ void LinkerObject::link(map<string, h160> const& _libraryAddresses)
|
||||
std::map<size_t, std::string> remainingRefs;
|
||||
for (auto const& linkRef: linkReferences)
|
||||
if (h160 const* address = matchLibrary(linkRef.second, _libraryAddresses))
|
||||
address->ref().copyTo(ref(bytecode).cropped(linkRef.first, 20));
|
||||
copy(address->data(), address->data() + 20, bytecode.begin() + linkRef.first);
|
||||
else
|
||||
remainingRefs.insert(linkRef);
|
||||
linkReferences.swap(remainingRefs);
|
||||
|
||||
Reference in New Issue
Block a user