Fixes hex string update via isoltest.

This commit is contained in:
Erik Kundt 2019-03-13 18:52:44 +01:00
parent ba9b3d5e95
commit ac5f860df9
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -291,7 +291,7 @@ tuple<bytes, ABIType, string> 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()};
}