From 4d6d224cf83195db8dcea1f5015a68d1ce2dca0f Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 8 Oct 2018 14:59:40 +0200 Subject: Prefix "0x" to library placeholder. --- libevmasm/LinkerObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libevmasm/LinkerObject.cpp') 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* -- cgit