From ac5f860df9b219ab16fc9b38ecc4576eaa450cca Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Wed, 13 Mar 2019 18:52:44 +0100 Subject: [PATCH] Fixes hex string update via isoltest. --- Changelog.md | 3 ++- test/libsolidity/util/TestFileParser.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index 043a48013..30d1bf2e1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ Bugfixes: Build System: * Install scripts: Fix boost repository URL for CentOS 6. + * Soltest: Fix hex string update in soltest. ### 0.5.6 (2019-03-13) @@ -45,6 +46,7 @@ Bugfixes: Build System: * Soltest: Add support for arrays in function signatures. * Soltest: Add support for struct arrays in function signatures. + * Soltest: Add support for left-aligned, unpadded hex string literals. ### 0.5.5 (2019-03-05) @@ -86,7 +88,6 @@ Bugfixes: Build System: * Soltest: Add support for left-aligned, padded hex literals. - * Soltest: Add support for left-aligned, unpadded hex string literals. * Soltest: Add support for right-aligned, padded boolean literals. ### 0.5.4 (2019-02-12) diff --git a/test/libsolidity/util/TestFileParser.cpp b/test/libsolidity/util/TestFileParser.cpp index 0e84cd8a4..8782fe01d 100644 --- a/test/libsolidity/util/TestFileParser.cpp +++ b/test/libsolidity/util/TestFileParser.cpp @@ -291,7 +291,7 @@ tuple TestFileParser::parseABITypeLiteral() if (alignment != DeclaredAlignment::None) throw Error(Error::Type::ParserError, "Hex string literals cannot be aligned or padded."); string parsed = parseHexNumber(); - rawString += parsed; + rawString += "hex\"" + parsed + "\""; result = convertHexString(parsed); abiType = ABIType{ABIType::HexString, ABIType::AlignNone, result.size()}; }