mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Changelog entry.
This commit is contained in:
parent
069b150e42
commit
58af150c3d
@ -4,6 +4,7 @@ Features:
|
|||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
* Code Generator: Properly skip unneeded storgae array cleanup when not reducing length.
|
* Code Generator: Properly skip unneeded storgae array cleanup when not reducing length.
|
||||||
|
* Code Generator: Bugfix in modifier lookup in libraries.
|
||||||
* Commandline interface: Support ``--evm-version constantinople`` properly.
|
* Commandline interface: Support ``--evm-version constantinople`` properly.
|
||||||
* Standard JSON: Support ``constantinople`` as ``evmVersion`` properly.
|
* Standard JSON: Support ``constantinople`` as ``evmVersion`` properly.
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
library WithModifier {
|
||||||
|
modifier mod() { require(msg.value > 10 ether); _; }
|
||||||
|
function withMod(uint self) mod() internal view { require(self > 0); }
|
||||||
|
}
|
||||||
|
|
||||||
|
contract Test {
|
||||||
|
using WithModifier for *;
|
||||||
|
|
||||||
|
function f(uint _value) public payable {
|
||||||
|
_value.withMod();
|
||||||
|
WithModifier.withMod(_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// ----
|
Loading…
Reference in New Issue
Block a user