Skip to content

Commit

Permalink
solc 0.6.8 fixes to the test contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
elenadimitrova committed May 21, 2020
1 parent 13509a9 commit 4bfc474
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions contracts-test/ERC20Approver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "../contracts/wallet/BaseWallet.sol";
import "../contracts/modules/common/BaseModule.sol";
import "../contracts/modules/common/OnlyOwnerModule.sol";

// SPDX-License-Identifier: GPL-3.0-only
contract ERC20Approver is BaseModule, OnlyOwnerModule {

bytes32 constant NAME = "ERC20Approver";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/FakeWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;
import "../contracts/wallet/BaseWallet.sol";

Expand Down
3 changes: 2 additions & 1 deletion contracts-test/KyberNetworkTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "../lib/other/ERC20.sol";
import "../lib/other/KyberNetwork.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";

// SPDX-License-Identifier: GPL-3.0-only
contract KyberNetworkTest is KyberNetwork {

using SafeMath for uint256;
Expand All @@ -23,7 +24,7 @@ contract KyberNetworkTest is KyberNetwork {
owner = msg.sender;
}

function() external payable {}
receive() external payable {}

/**
* @dev Adds a tradable token to the Kyber instance
Expand Down
1 change: 1 addition & 0 deletions contracts-test/NewTestModule.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "../contracts/modules/common/BaseModule.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/NonCompliantGuardian.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

/**
Expand Down
1 change: 1 addition & 0 deletions contracts-test/OldTestModule.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "../contracts/modules/common/BaseModule.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/TestContract.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;
import "./TokenConsumer.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/TestDapp.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

contract TestDapp {
Expand Down
1 change: 1 addition & 0 deletions contracts-test/TestERC20.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
Expand Down
8 changes: 4 additions & 4 deletions contracts-test/TestERC721.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";

contract TestERC721 is ERC721Full, ERC721Mintable {
constructor() ERC721Full("Argent Kitties", "AGKT") public {
contract TestERC721 is ERC721 {
constructor() ERC721("Argent Kitties", "AGKT") public {
}
}
1 change: 1 addition & 0 deletions contracts-test/TestModuleRelayer.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;
import "../contracts/wallet/BaseWallet.sol";
import "../contracts/modules/common/BaseModule.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/TestOnlyOwnerModule.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;
import "../contracts/wallet/BaseWallet.sol";
import "../contracts/modules/common/OnlyOwnerModule.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/TestRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
// Source https://github.com/christianlundkvist/simple-multisig/blob/master/contracts/TestRegistry.sol
pragma solidity ^0.6.8;

Expand Down
1 change: 1 addition & 0 deletions contracts-test/TestUpgradedMakerV2Manager.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "../contracts/modules/maker/MakerV2Manager.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/TokenConsumer.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/maker/FaucetUser.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

import "../../lib/maker/DS/DSToken.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts-test/maker/TestCdpManager.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.6.8;

contract TestCdpManager {
Expand Down

0 comments on commit 4bfc474

Please sign in to comment.