Skip to content

Commit 6af417b

Browse files
authored
Merge pull request #3 from streamr-dev/fixes-limechain
fixes requested by limechain audit
2 parents 5a73a6f + 098178f commit 6af417b

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

contracts/DATAv2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity >=0.8.0;
2+
pragma solidity 0.8.6;
33

44
import "@openzeppelin/contracts/access/AccessControl.sol";
55
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";

contracts/DataTokenMigrator.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity >=0.8.0;
2+
pragma solidity 0.8.6;
33

44
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
55

@@ -30,7 +30,7 @@ contract DataTokenMigrator { // is UpgradeAgent, see Crowdsale.sol
3030
* @param _from token holder that called CrowdsaleToken.upgrade(_value)
3131
* @param _value amount of tokens to upgrade, checked by the CrowdsaleToken
3232
*/
33-
function upgradeFrom(address _from, uint256 _value) public {
33+
function upgradeFrom(address _from, uint256 _value) external {
3434
require(
3535
msg.sender == address(oldToken),
3636
"Call not permitted, UpgradableToken only"

contracts/IERC677.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.0;
2+
pragma solidity 0.8.6;
33

44
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
55

contracts/IERC677Receiver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.0;
2+
pragma solidity 0.8.6;
33

44
interface IERC677Receiver {
55
function onTokenTransfer(

contracts/MockRecipient.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//SPDX-License-Identifier: Unlicense
2-
pragma solidity ^0.8.0;
2+
pragma solidity 0.8.6;
33

44
import "hardhat/console.sol";
55
import "./IERC677Receiver.sol";

hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525
solidity: {
2626
compilers: [
2727
{
28-
version: "0.8.3",
28+
version: "0.8.6",
2929
},
3030
{
3131
version: "0.4.11"

0 commit comments

Comments
 (0)