diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-06 19:08:25 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-10-06 22:34:41 +0800 |
commit | 34df80c502c5e20fda6db1d2152beccdfb3342cc (patch) | |
tree | 1952c30abb077da548d64a80d121d2ecf1287f2b /libsolidity | |
parent | e69173f910e8454a7dc13f79598e7e9fd5c147c9 (diff) | |
download | dexon-solidity-34df80c502c5e20fda6db1d2152beccdfb3342cc.tar.gz dexon-solidity-34df80c502c5e20fda6db1d2152beccdfb3342cc.tar.zst dexon-solidity-34df80c502c5e20fda6db1d2152beccdfb3342cc.zip |
Add alias keccak256() for sha3()
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/GlobalContext.cpp | 2 |
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", |