aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/LinkerObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/LinkerObject.cpp b/libevmasm/LinkerObject.cpp
index 06607089..8b7d9e06 100644
--- a/libevmasm/LinkerObject.cpp
+++ b/libevmasm/LinkerObject.cpp
@@ -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);