aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.cpp
diff options
context:
space:
mode:
authorwadeAlexC <wade.alex.c@gmail.com>2017-10-05 21:28:25 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-11-17 08:46:44 +0800
commit8a6692b2cfb7cf53db6731acd6a9908bd36b5475 (patch)
tree205a7099eacf17a44932c3285371a7007bf980ea /libsolidity/ast/AST.cpp
parent2927ce0bd43e7d6aa3ba8e13bd123225adf1c7e8 (diff)
downloaddexon-solidity-8a6692b2cfb7cf53db6731acd6a9908bd36b5475.tar.gz
dexon-solidity-8a6692b2cfb7cf53db6731acd6a9908bd36b5475.tar.zst
dexon-solidity-8a6692b2cfb7cf53db6731acd6a9908bd36b5475.zip
Improves address literal checksum error message
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-rw-r--r--libsolidity/ast/AST.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index 1048b610..4911f161 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -583,3 +583,9 @@ bool Literal::passesAddressChecksum() const
solAssert(isHexNumber(), "Expected hex number");
return dev::passesAddressChecksum(value(), true);
}
+
+std::string Literal::getChecksummedAddress() const
+{
+ solAssert(isHexNumber(), "Expected hex number");
+ return dev::getChecksummedAddress(value());
+}