Skip to content

Commit

Permalink
Revert Solidity version bump. (#1729)
Browse files Browse the repository at this point in the history
(cherry picked from commit 67bca85)
  • Loading branch information
nventuro authored and frangio committed Apr 24, 2019
1 parent a3af826 commit ae91962
Show file tree
Hide file tree
Showing 135 changed files with 135 additions and 135 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* All contracts now have revert reason strings, which give insight into error conditions, and help debug failing transactions. ([#1704](https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1704))

### Improvements:
* Upgraded the minimum compiler version to v0.5.7: this prevents users from encountering compiler bugs that were fixed in this version. ([#1724](https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1724))
* Reverted the Solidity version bump done in v2.2.0, setting the minimum compiler version to v0.5.0, to prevent unexpected build breakage. Users are encouraged however to stay on top of new compiler releases, which usually include bugfixes. ([#1728](https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1728))

### Bugfixes:
* `PostDeliveryCrowdsale`: some validations where skipped when paired with other crowdsale flavors, such as `AllowanceCrowdsale`, or `MintableCrowdsale` and `ERC20Capped`, which could cause buyers to not be able to claim their purchased tokens. ([#1721](https://github.com/OpenZeppelin/openzeppelin-solidity/pull/1721))
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/Roles.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title Roles
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/roles/CapperRole.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Roles.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/access/roles/MinterRole.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Roles.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/access/roles/PauserRole.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Roles.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/access/roles/SignerRole.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Roles.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/access/roles/WhitelistAdminRole.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Roles.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/access/roles/WhitelistedRole.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Roles.sol";
import "./WhitelistAdminRole.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/Crowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/IERC20.sol";
import "../math/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/distribution/FinalizableCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../math/SafeMath.sol";
import "../validation/TimedCrowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/distribution/PostDeliveryCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../validation/TimedCrowdsale.sol";
import "../../math/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/distribution/RefundableCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../math/SafeMath.sol";
import "./FinalizableCrowdsale.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "./RefundableCrowdsale.sol";
import "./PostDeliveryCrowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/emission/AllowanceCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Crowdsale.sol";
import "../../token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/emission/MintedCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Crowdsale.sol";
import "../../token/ERC20/ERC20Mintable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/price/IncreasingPriceCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../validation/TimedCrowdsale.sol";
import "../../math/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/validation/CappedCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../math/SafeMath.sol";
import "../Crowdsale.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../math/SafeMath.sol";
import "../Crowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/validation/PausableCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../Crowdsale.sol";
import "../../lifecycle/Pausable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/validation/TimedCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../math/SafeMath.sol";
import "../Crowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/crowdsale/validation/WhitelistCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;
import "../Crowdsale.sol";
import "../../access/roles/WhitelistedRole.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/cryptography/ECDSA.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title Elliptic curve signature operations
Expand Down
2 changes: 1 addition & 1 deletion contracts/cryptography/MerkleProof.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title MerkleProof
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/Counters.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../math/SafeMath.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC1046/ERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../token/ERC20/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC1820Implementer.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "./IERC1820Implementer.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC20Migrator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/IERC20.sol";
import "../token/ERC20/ERC20Mintable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC20Snapshot.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../math/SafeMath.sol";
import "../utils/Arrays.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC777/ERC777.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "./IERC777.sol";
import "./IERC777Recipient.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC777/IERC777.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title ERC777 token interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC777/IERC777Recipient.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title ERC777 token recipient interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/ERC777/IERC777Sender.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title ERC777 token sender interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/IERC1820Implementer.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title IERC1820Implementer
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/IERC1820Registry.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title ERC1820 Pseudo-introspection Registry Contract
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/SignatureBouncer.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../access/roles/SignerRole.sol";
import "../cryptography/ECDSA.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/SignedSafeMath.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title SignedSafeMath
Expand Down
2 changes: 1 addition & 1 deletion contracts/drafts/TokenVesting.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/SafeERC20.sol";
import "../ownership/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/SampleCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../crowdsale/validation/CappedCrowdsale.sol";
import "../crowdsale/distribution/RefundableCrowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/SimpleToken.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20.sol";
import "../token/ERC20/ERC20Detailed.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/introspection/ERC165.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "./IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/introspection/ERC165Checker.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title ERC165Checker
Expand Down
2 changes: 1 addition & 1 deletion contracts/introspection/IERC165.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title IERC165
Expand Down
2 changes: 1 addition & 1 deletion contracts/lifecycle/Pausable.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../access/roles/PauserRole.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/math/Math.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title Math
Expand Down
2 changes: 1 addition & 1 deletion contracts/math/SafeMath.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

/**
* @title SafeMath
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/AddressImpl.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../utils/Address.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/AllowanceCrowdsaleImpl.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/IERC20.sol";
import "../crowdsale/emission/AllowanceCrowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ArraysImpl.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../utils/Arrays.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/CappedCrowdsaleImpl.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/IERC20.sol";
import "../crowdsale/validation/CappedCrowdsale.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/CapperRoleMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../access/roles/CapperRole.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ConditionalEscrowMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../payment/escrow/ConditionalEscrow.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/CountersImpl.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../drafts/Counters.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/CrowdsaleMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../crowdsale/Crowdsale.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ECDSAMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../cryptography/ECDSA.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC165/ERC165InterfacesSupported.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../../introspection/IERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC165/ERC165NotSupported.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

contract ERC165NotSupported {
// solhint-disable-previous-line no-empty-blocks
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC165CheckerMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../introspection/ERC165Checker.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC165Mock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../introspection/ERC165.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC1820ImplementerMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../drafts/ERC1820Implementer.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20BurnableMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20Burnable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20DetailedMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20.sol";
import "../token/ERC20/ERC20Detailed.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20MetadataMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20.sol";
import "../drafts/ERC1046/ERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20MintableMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20Mintable.sol";
import "./MinterRoleMock.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20Mock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20PausableMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../token/ERC20/ERC20Pausable.sol";
import "./PauserRoleMock.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC20SnapshotMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.7;
pragma solidity ^0.5.0;

import "../drafts/ERC20Snapshot.sol";

Expand Down

0 comments on commit ae91962

Please sign in to comment.