aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-11 16:58:45 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-30 17:54:29 +0800
commit75e4a2be1b920ad88c34a261a84cef5f4635eb68 (patch)
tree0461d7303c31ec4610214b7a6fc32ad6885b0e49 /libsolidity
parent0c8beac35785a3c688c48c7f607832c30509c907 (diff)
downloaddexon-solidity-75e4a2be1b920ad88c34a261a84cef5f4635eb68.tar.gz
dexon-solidity-75e4a2be1b920ad88c34a261a84cef5f4635eb68.tar.zst
dexon-solidity-75e4a2be1b920ad88c34a261a84cef5f4635eb68.zip
Alias sha3 to keccak256 in inline assembly
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/inlineasm/AsmParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp
index 80409c63..f891ddc9 100644
--- a/libsolidity/inlineasm/AsmParser.cpp
+++ b/libsolidity/inlineasm/AsmParser.cpp
@@ -200,6 +200,8 @@ std::map<string, dev::solidity::Instruction> const& Parser::instructions()
// add alias for suicide
s_instructions["suicide"] = solidity::Instruction::SELFDESTRUCT;
+ // add alis for sha3
+ s_instructions["sha3"] = solidity::Instruction::KECCAK256;
}
return s_instructions;
}