Merge pull request #6280 from ethereum/soltest-hexstring-update

[soltest] Fix hex string update
This commit is contained in:
chriseth 2019-03-14 11:20:25 +01:00 committed by GitHub
commit ddf0cbb89b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()};
}