diff options
author | chriseth <chris@ethereum.org> | 2018-12-06 17:04:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 17:04:58 +0800 |
commit | 5a08ae5e719820ba6d34a66187304747cf5c061f (patch) | |
tree | 8c7cc409fd8155580947ecf7a0f5fd385fe0336f /libsolidity/ast | |
parent | 15e28fa444843d6b8e5bef81ae9fc73a41ae97f6 (diff) | |
parent | 936c67415ae058984c5666c44bf68fd1ebfaf23a (diff) | |
download | dexon-solidity-5a08ae5e719820ba6d34a66187304747cf5c061f.tar.gz dexon-solidity-5a08ae5e719820ba6d34a66187304747cf5c061f.tar.zst dexon-solidity-5a08ae5e719820ba6d34a66187304747cf5c061f.zip |
Merge pull request #5600 from ethereum/simplifyToHex
Simplify toHex()
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index cfb13271..e92134a8 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -724,7 +724,7 @@ bool ASTJsonConverter::visit(Literal const& _node) std::vector<pair<string, Json::Value>> attributes = { make_pair(m_legacy ? "token" : "kind", literalTokenKind(_node.token())), make_pair("value", value), - make_pair(m_legacy ? "hexvalue" : "hexValue", toHex(_node.value())), + make_pair(m_legacy ? "hexvalue" : "hexValue", toHex(asBytes(_node.value()))), make_pair( "subdenomination", subdenomination == Token::Illegal ? |