aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <yhirai@pira.jp>2016-10-07 00:33:00 +0800
committerGitHub <noreply@github.com>2016-10-07 00:32:59 +0800
commit3f833c9ef4fde4edc795b5ddce6a7a2b543e3c00 (patch)
tree62c0709ea429946f8eea89bb659eaf3a790e25c8 /libsolidity
parent2bd80056eddd490efc1300d6370cae9f9c9e59d4 (diff)
parent111d33d7aced317605fd88c74b01ffbc6ab266c7 (diff)
downloaddexon-solidity-3f833c9ef4fde4edc795b5ddce6a7a2b543e3c00.tar.gz
dexon-solidity-3f833c9ef4fde4edc795b5ddce6a7a2b543e3c00.tar.zst
dexon-solidity-3f833c9ef4fde4edc795b5ddce6a7a2b543e3c00.zip
Merge pull request #1164 from ethereum/keccak256-alias
Add alias keccak256() for sha3()
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/GlobalContext.cpp2
1 files changed, 2 insertions, 0 deletions
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<shared_ptr<MagicVariableDeclaration const>>{make_shared<
make_shared<FunctionType>(strings{"uint256", "uint256", "uint256"}, strings{"uint256"}, FunctionType::Location::MulMod)),
make_shared<MagicVariableDeclaration>("sha3",
make_shared<FunctionType>(strings(), strings{"bytes32"}, FunctionType::Location::SHA3, true)),
+ make_shared<MagicVariableDeclaration>("keccak256",
+ make_shared<FunctionType>(strings(), strings{"bytes32"}, FunctionType::Location::SHA3, true)),
make_shared<MagicVariableDeclaration>("log0",
make_shared<FunctionType>(strings{"bytes32"}, strings{}, FunctionType::Location::Log0)),
make_shared<MagicVariableDeclaration>("log1",