mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove suicide and sha3 assembly instructions
This commit is contained in:
parent
ef8fb63b31
commit
6e29775d39
@ -10,6 +10,7 @@ Breaking Changes:
|
|||||||
* General: ``continue`` in a ``do...while`` loop jumps to the condition (it used to jump to the loop body). Warning: this may silently change the semantics of existing code.
|
* General: ``continue`` in a ``do...while`` loop jumps to the condition (it used to jump to the loop body). Warning: this may silently change the semantics of existing code.
|
||||||
* Type Checker: Disallow arithmetic operations for Boolean variables.
|
* Type Checker: Disallow arithmetic operations for Boolean variables.
|
||||||
* Disallow trailing dots that are not followed by a number.
|
* Disallow trailing dots that are not followed by a number.
|
||||||
|
* Remove assembly instructions ``sha3`` and ``suicide``
|
||||||
|
|
||||||
Language Features:
|
Language Features:
|
||||||
* General: Allow appending ``calldata`` keyword to types, to explicitly specify data location for arguments of external functions.
|
* General: Allow appending ``calldata`` keyword to types, to explicitly specify data location for arguments of external functions.
|
||||||
|
@ -318,11 +318,6 @@ std::map<string, dev::solidity::Instruction> const& Parser::instructions()
|
|||||||
transform(name.begin(), name.end(), name.begin(), [](unsigned char _c) { return tolower(_c); });
|
transform(name.begin(), name.end(), name.begin(), [](unsigned char _c) { return tolower(_c); });
|
||||||
s_instructions[name] = instruction.second;
|
s_instructions[name] = instruction.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add alias for suicide
|
|
||||||
s_instructions["suicide"] = solidity::Instruction::SELFDESTRUCT;
|
|
||||||
// add alis for sha3
|
|
||||||
s_instructions["sha3"] = solidity::Instruction::KECCAK256;
|
|
||||||
}
|
}
|
||||||
return s_instructions;
|
return s_instructions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user