mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4763 from ethereum/remove-experimental-050
Remove experimental 0.5.0 pragma
This commit is contained in:
commit
863778fe36
@ -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 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:
|
||||
* 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!
|
||||
@ -77,6 +76,7 @@ Compiler Features:
|
||||
* Type Checker: Show named argument in case of error.
|
||||
* Tests: Determine transaction status during IPC calls.
|
||||
* Code Generator: Allocate and free local variables according to their scope.
|
||||
* Removed ``pragma experimental "v0.5.0";``.
|
||||
|
||||
Bugfixes:
|
||||
* 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
|
||||
SMTChecker,
|
||||
V050, // v0.5.0 breaking changes
|
||||
Test,
|
||||
TestOnlyAnalysis
|
||||
};
|
||||
@ -40,14 +39,12 @@ static const std::map<ExperimentalFeature, bool> ExperimentalFeatureOnlyAnalysis
|
||||
{
|
||||
{ ExperimentalFeature::SMTChecker, true },
|
||||
{ ExperimentalFeature::TestOnlyAnalysis, true },
|
||||
{ ExperimentalFeature::V050, true }
|
||||
};
|
||||
|
||||
static const std::map<std::string, ExperimentalFeature> ExperimentalFeatureNames =
|
||||
{
|
||||
{ "ABIEncoderV2", ExperimentalFeature::ABIEncoderV2 },
|
||||
{ "SMTChecker", ExperimentalFeature::SMTChecker },
|
||||
{ "v0.5.0", ExperimentalFeature::V050 },
|
||||
{ "__test", ExperimentalFeature::Test },
|
||||
{ "__testOnlyAnalysis", ExperimentalFeature::TestOnlyAnalysis },
|
||||
};
|
||||
|
@ -334,10 +334,9 @@ BOOST_AUTO_TEST_CASE(conditional_expression_functions)
|
||||
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"(
|
||||
pragma experimental "v0.5.0";
|
||||
contract test {
|
||||
function f() pure public returns (uint) {
|
||||
uint x = 7;
|
||||
|
Loading…
Reference in New Issue
Block a user