Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmark/VRFGasHelper.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma solidity ^0.8.0;

import "../contracts/VRF.sol";

Expand Down
4 changes: 2 additions & 2 deletions contracts/Migrations.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.21 <0.7.0;
pragma solidity ^0.8.0;

contract Migrations {
address public owner;
uint public last_completed_migration;

constructor() public {
constructor() {
owner = msg.sender;
}

Expand Down
4 changes: 2 additions & 2 deletions contracts/VRF.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.3 <0.7.0;
pragma solidity ^0.8.0;

import "elliptic-curve-solidity/contracts/EllipticCurve.sol";

Expand Down Expand Up @@ -452,6 +452,6 @@ library VRF {
function pointToAddress(uint256 _x, uint256 _y)
internal pure returns(address)
{
return address(uint256(keccak256(abi.encodePacked(_x, _y))) & 0x00FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
return address(uint160(uint256(keccak256(abi.encodePacked(_x, _y)))));
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"ganache-cli": "6.12.1",
"solidity-coverage": "0.7.12",
"solium": "1.2.5",
"truffle": "5.1.53",
"truffle": "^5.11.5",
"truffle-assertions": "0.9.2"
}
}
2 changes: 1 addition & 1 deletion test/TestHelperInternals.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma solidity ^0.8.0;

import "../contracts/VRF.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/TestHelperVRF.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;
pragma solidity ^0.8.0;

import "../contracts/VRF.sol";

Expand Down
2 changes: 1 addition & 1 deletion truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
},
compilers: {
solc: {
version: "0.6.12",
version: "^0.8.0",
settings: {
optimizer: {
enabled: true,
Expand Down