Skip to content

Commit

Permalink
Compiler warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Feb 6, 2021
1 parent 3f09e77 commit 9788a7c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions contracts/Migrations.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.24 <0.7.0;

contract Migrations {
Expand Down
3 changes: 2 additions & 1 deletion contracts/MyContract.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
10 changes: 5 additions & 5 deletions contracts/PriceConsumerV3.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";
Expand All @@ -20,11 +20,11 @@ contract PriceConsumerV3 {
*/
function getLatestPrice() public view returns (int) {
(
uint80 roundID,
/* uint80 roundID */,
int price,
uint startedAt,
uint timeStamp,
uint80 answeredInRound
/* uint startedAt */,
/* uint timeStamp */,
/* uint80 answeredInRound */
) = priceFeed.latestRoundData();
return price;
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/RandomNumberConsumer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";

Expand Down Expand Up @@ -44,7 +44,7 @@ contract RandomNumberConsumer is VRFConsumerBase {
/**
* Callback function used by VRF Coordinator
*/
function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
function fulfillRandomness(bytes32 /* requestId */, uint256 randomness) internal override {
randomResult = randomness;
}
}

0 comments on commit 9788a7c

Please sign in to comment.