Prefix "0x" to library placeholder.

This commit is contained in:
chriseth 2018-10-08 14:59:40 +02:00
parent e8ba2d6e46
commit 4d6d224cf8

View File

@ -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*