mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add "payable" to changelog.
This commit is contained in:
parent
e2b787cdd0
commit
63ac17044a
14
Changelog.md
14
Changelog.md
@ -7,13 +7,15 @@ enforce some safety features. The most important change is
|
|||||||
Breaking Changes:
|
Breaking Changes:
|
||||||
|
|
||||||
* Source files have to specify the compiler version they are
|
* Source files have to specify the compiler version they are
|
||||||
compatible with using e.g. `pragma solidity ^0.4.0;` or
|
compatible with using e.g. ``pragma solidity ^0.4.0;`` or
|
||||||
`pragma solidity >=0.4.0 <0.4.8;`
|
``pragma solidity >=0.4.0 <0.4.8;``
|
||||||
|
* Functions that want to receive Ether have to specify the
|
||||||
|
new ``payable`` modifier (otherwise they throw).
|
||||||
* Contracts that want to receive Ether have to implement a fallback
|
* Contracts that want to receive Ether have to implement a fallback
|
||||||
function (contracts now throw if no fallback function is defined
|
function with the payable modifier (contracts now throw if no fallback
|
||||||
and no function matches the signature).
|
function is defined and no function matches the signature).
|
||||||
* Failing contract creation through "new" throws now.
|
* Failing contract creation through "new" throws.
|
||||||
* Throw on division / modulus by zero
|
* Division / modulus by zero throws
|
||||||
* Function call throws if target contract does not have code
|
* Function call throws if target contract does not have code
|
||||||
* Modifiers are required to contain ``_`` (use ``if (false) _`` as a workaround if needed).
|
* Modifiers are required to contain ``_`` (use ``if (false) _`` as a workaround if needed).
|
||||||
* Modifiers: return does not skip part in modifier after ``_``
|
* Modifiers: return does not skip part in modifier after ``_``
|
||||||
|
Loading…
Reference in New Issue
Block a user