aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/LinkerObject.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-08 20:59:40 +0800
committerchriseth <chris@ethereum.org>2018-10-12 21:15:01 +0800
commit4d6d224cf83195db8dcea1f5015a68d1ce2dca0f (patch)
treebd2ee53b0e67bf5d4c3db808b3792a633fdf8b03 /libevmasm/LinkerObject.cpp
parente8ba2d6e46f13fc02a32c2216b6bd32fb300c011 (diff)
downloaddexon-solidity-4d6d224cf83195db8dcea1f5015a68d1ce2dca0f.tar.gz
dexon-solidity-4d6d224cf83195db8dcea1f5015a68d1ce2dca0f.tar.zst
dexon-solidity-4d6d224cf83195db8dcea1f5015a68d1ce2dca0f.zip
Prefix "0x" to library placeholder.
Diffstat (limited to 'libevmasm/LinkerObject.cpp')
-rw-r--r--libevmasm/LinkerObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/LinkerObject.cpp b/libevmasm/LinkerObject.cpp
index 0ac69966..e9c73908 100644
--- a/libevmasm/LinkerObject.cpp
+++ b/libevmasm/LinkerObject.cpp
@@ -61,7 +61,7 @@ string LinkerObject::toHex() const
string LinkerObject::libraryPlaceholder(string const& _libraryName)
{
- return keccak256(_libraryName).hex().substr(0, 36);
+ return "0x" + keccak256(_libraryName).hex().substr(0, 34);
}
h160 const*