MCPcopy Create free account
hub / github.com/argotorg/solidity / getChecksummedAddress

Method getChecksummedAddress

libsolidity/ast/AST.cpp:1055–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053}
1054
1055std::string Literal::getChecksummedAddress() const
1056{
1057 solAssert(isHexNumber(), "Expected hex number");
1058 /// Pad literal to be a proper hex address.
1059 std::string address = valueWithoutUnderscores().substr(2);
1060 if (address.length() > 40)
1061 return std::string();
1062 address.insert(address.begin(), 40 - address.size(), '0');
1063 return util::getChecksummedAddress(address);
1064}
1065
1066TryCatchClause const* TryStatement::successClause() const
1067{

Callers 1

endVisitMethod · 0.45

Calls 4

insertMethod · 0.80
lengthMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected