From 34df80c502c5e20fda6db1d2152beccdfb3342cc Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 6 Oct 2016 12:08:25 +0100 Subject: Add alias keccak256() for sha3() --- libsolidity/analysis/GlobalContext.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsolidity') diff --git a/libsolidity/analysis/GlobalContext.cpp b/libsolidity/analysis/GlobalContext.cpp index a7ffcfad..d075949e 100644 --- a/libsolidity/analysis/GlobalContext.cpp +++ b/libsolidity/analysis/GlobalContext.cpp @@ -48,6 +48,8 @@ m_magicVariables(vector>{make_shared< make_shared(strings{"uint256", "uint256", "uint256"}, strings{"uint256"}, FunctionType::Location::MulMod)), make_shared("sha3", make_shared(strings(), strings{"bytes32"}, FunctionType::Location::SHA3, true)), + make_shared("keccak256", + make_shared(strings(), strings{"bytes32"}, FunctionType::Location::SHA3, true)), make_shared("log0", make_shared(strings{"bytes32"}, strings{}, FunctionType::Location::Log0)), make_shared("log1", -- cgit v1.2.3