mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove experimental 0.5.0 pragma
This commit is contained in:
parent
de8e9114fd
commit
1bfb841771
@ -8,7 +8,6 @@ How to update your code:
|
|||||||
* Explicitly state the storage location for local variables of struct and array types, e.g. change ``uint[] x = m_x`` to ``uint[] storage x = m_x``.
|
* Explicitly state the storage location for local variables of struct and array types, e.g. change ``uint[] x = m_x`` to ``uint[] storage x = m_x``.
|
||||||
* Explicitly convert values of contract type to addresses before using an ``address`` member. Example: if ``c`` is a contract, change ``c.transfer(...)`` to ``address(c).transfer(...)``.
|
* Explicitly convert values of contract type to addresses before using an ``address`` member. Example: if ``c`` is a contract, change ``c.transfer(...)`` to ``address(c).transfer(...)``.
|
||||||
|
|
||||||
|
|
||||||
Breaking Changes:
|
Breaking Changes:
|
||||||
* ABI Encoder: Properly pad data from calldata (``msg.data`` and external function parameters). Use ``abi.encodePacked`` for unpadded encoding.
|
* ABI Encoder: Properly pad data from calldata (``msg.data`` and external function parameters). Use ``abi.encodePacked`` for unpadded encoding.
|
||||||
* Code Generator: Signed right shift uses proper arithmetic shift, i.e. rounding towards negative infinity. Warning: this may silently change the semantics of existing code!
|
* Code Generator: Signed right shift uses proper arithmetic shift, i.e. rounding towards negative infinity. Warning: this may silently change the semantics of existing code!
|
||||||
@ -77,6 +76,7 @@ Compiler Features:
|
|||||||
* Type Checker: Show named argument in case of error.
|
* Type Checker: Show named argument in case of error.
|
||||||
* Tests: Determine transaction status during IPC calls.
|
* Tests: Determine transaction status during IPC calls.
|
||||||
* Code Generator: Allocate and free local variables according to their scope.
|
* Code Generator: Allocate and free local variables according to their scope.
|
||||||
|
* Removed ``pragma experimental "v0.5.0";``.
|
||||||
|
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
* Tests: Fix chain parameters to make ipc tests work with newer versions of cpp-ethereum.
|
* Tests: Fix chain parameters to make ipc tests work with newer versions of cpp-ethereum.
|
||||||
|
@ -31,7 +31,6 @@ enum class ExperimentalFeature
|
|||||||
{
|
{
|
||||||
ABIEncoderV2, // new ABI encoder that makes use of Yul
|
ABIEncoderV2, // new ABI encoder that makes use of Yul
|
||||||
SMTChecker,
|
SMTChecker,
|
||||||
V050, // v0.5.0 breaking changes
|
|
||||||
Test,
|
Test,
|
||||||
TestOnlyAnalysis
|
TestOnlyAnalysis
|
||||||
};
|
};
|
||||||
@ -40,14 +39,12 @@ static const std::map<ExperimentalFeature, bool> ExperimentalFeatureOnlyAnalysis
|
|||||||
{
|
{
|
||||||
{ ExperimentalFeature::SMTChecker, true },
|
{ ExperimentalFeature::SMTChecker, true },
|
||||||
{ ExperimentalFeature::TestOnlyAnalysis, true },
|
{ ExperimentalFeature::TestOnlyAnalysis, true },
|
||||||
{ ExperimentalFeature::V050, true }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames =
|
static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames =
|
||||||
{
|
{
|
||||||
{ "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 },
|
{ "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 },
|
||||||
{ "SMTChecker", ExperimentalFeature::SMTChecker },
|
{ "SMTChecker", ExperimentalFeature::SMTChecker },
|
||||||
{ "v0.5.0", ExperimentalFeature::V050 },
|
|
||||||
{ "__test", ExperimentalFeature::Test },
|
{ "__test", ExperimentalFeature::Test },
|
||||||
{ "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis },
|
{ "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis },
|
||||||
};
|
};
|
||||||
|
@ -334,10 +334,9 @@ BOOST_AUTO_TEST_CASE(conditional_expression_functions)
|
|||||||
ABI_CHECK(callContractFunction("f(bool)", false), encodeArgs(u256(2)));
|
ABI_CHECK(callContractFunction("f(bool)", false), encodeArgs(u256(2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(C99_scoping_activation)
|
BOOST_AUTO_TEST_CASE(c99_scoping_activation)
|
||||||
{
|
{
|
||||||
char const* sourceCode = R"(
|
char const* sourceCode = R"(
|
||||||
pragma experimental "v0.5.0";
|
|
||||||
contract test {
|
contract test {
|
||||||
function f() pure public returns (uint) {
|
function f() pure public returns (uint) {
|
||||||
uint x = 7;
|
uint x = 7;
|
||||||
|
Loading…
Reference in New Issue
Block a user