Skip to content

Commit

Permalink
chore: edit solidity version
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonchuah committed Nov 24, 2023
1 parent 9dc0e85 commit 2c8ae02
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions contracts/GelatoVRFConsumerBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

Check failure on line 2 in contracts/GelatoVRFConsumerBase.sol

View workflow job for this annotation

GitHub Actions / test

Compiler version ^0.8.0 does not satisfy the 0.8.18 semver requirement

import {IGelatoVRFConsumer} from "contracts/IGelatoVRFConsumer.sol";

Expand All @@ -14,7 +14,7 @@ abstract contract GelatoVRFConsumerBase is IGelatoVRFConsumer {
uint256 private constant _PERIOD = 3;
uint256 private constant _GENESIS = 1692803367;
bool[] public requestPending;
mapping(uint256 requestId => bytes32 requestHash) public requestedHash;
mapping(uint256 => bytes32) public requestedHash;

/// @notice Returns the address of the dedicated msg.sender.
/// @dev The operator can be found on the Gelato dashboard after a VRF is deployed.
Expand Down
2 changes: 1 addition & 1 deletion contracts/IGelatoVRFConsumer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

Check failure on line 2 in contracts/IGelatoVRFConsumer.sol

View workflow job for this annotation

GitHub Actions / test

Compiler version ^0.8.0 does not satisfy the 0.8.18 semver requirement

/// @title IGelatoVRFConsumer
/// @dev Interface for consuming random number provided by Drand.
Expand Down
2 changes: 1 addition & 1 deletion contracts/chainlink_compatible/VRFCoordinatorV2Adapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

import {VRFCoordinatorV2Stub} from "./internal/VRFCoordinatorV2Stub.sol";
import {GelatoVRFConsumerBase} from "contracts/GelatoVRFConsumerBase.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

import {VRFCoordinatorV2Adapter} from "./VRFCoordinatorV2Adapter.sol";

Expand All @@ -12,7 +12,7 @@ contract VRFCoordinatorV2AdapterFactory {
event AdapterCreated(address indexed creator, address adapter);

/// Mapping to keep track of which deployer created which adapter.
mapping(address deployer => address adapter) public adapterRegistry;
mapping(address => address) public adapterRegistry;

/// @notice Create a new instance of VRFCoordinatorV2Adapter.
/// @dev Creates a new VRFCoordinatorV2Adapter contract with the provided operator address.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

import {
VRFCoordinatorV2Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/chainlink_compatible/mocks/MockCLVRFConsumer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

import {
VRFCoordinatorV2Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MockVRFConsumer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

import {GelatoVRFConsumerBase} from "../GelatoVRFConsumerBase.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/rnglib/RNGLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

/// @title RNGLib
/// @dev Library providing a simple interface to manage a contract-internal PRNG and pull random numbers from it.
Expand Down
2 changes: 1 addition & 1 deletion contracts/rnglib/RNGLibTestHarness.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

import {RNGLib} from "./RNGLib.sol";

Expand Down

0 comments on commit 2c8ae02

Please sign in to comment.