Skip to content
Merged
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- [Chainlink Automation](https://docs.chain.link/chainlink-automation/introduction)


For [Chainlink Functions](https://docs.chain.link/chainlink-functions) please go to these tarter kits: [Hardhat](https://github.com/smartcontractkit/functions-hardhat-starter-kit) | [Foundry (coming soon)](https://github.com/smartcontractkit/functions-foundry-starter-kit)
For [Chainlink Functions](https://docs.chain.link/chainlink-functions) please go to these starter kits: [Hardhat](https://github.com/smartcontractkit/functions-hardhat-starter-kit) | [Foundry (coming soon)](https://github.com/smartcontractkit/functions-foundry-starter-kit)

For [Chainlink CCIP (Cross Chain Interoperability Prototocol)](https://docs.chain.link/ccip) please go to these starter kits: [Hardhat](https://github.com/smartcontractkit/ccip-starter-kit-hardhat) | [Foundry](https://github.com/smartcontractkit/ccip-starter-kit-foundry)

Expand Down
2 changes: 1 addition & 1 deletion contracts/AutomationCounter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ contract AutomationCounter is AutomationCompatibleInterface {
function performUpkeep(
bytes calldata /* performData */
) external override {
//We highly recommend revalidating the upkeep in the performUpkeep function
// We highly recommend revalidating the upkeep in the performUpkeep function
(bool upkeepNeeded, ) = checkUpkeep("");
require(upkeepNeeded, "Time interval not met");
lastTimeStamp = block.timestamp;
Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SEPOLIA_RPC_URL = process.env.SEPOLIA_RPC_URL
const AMOY_RPC_URL =
process.env.AMOY_RPC_URL || "https://polygon-amoy.infura.io/v3/your-api-key"
const PRIVATE_KEY = process.env.PRIVATE_KEY
// optional
// Optional: mnemonic for wallet generation
const MNEMONIC = process.env.MNEMONIC || "Your mnemonic"
const FORKING_BLOCK_NUMBER = parseInt(process.env.FORKING_BLOCK_NUMBER) || 0

Expand Down
2 changes: 1 addition & 1 deletion helper-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const autoFundCheck = async (contractAddr, networkName, linkTokenAddress, additi
const chainId = network.config.chainId
console.log("Checking to see if contract can be auto-funded with LINK:")
const amount = networkConfig[chainId]["fundAmount"]
//check to see if user has enough LINK
// Check to see if user has enough LINK
const accounts = await ethers.getSigners()
const signer = accounts[0]
const LinkToken = await ethers.getContractFactory("MockLinkToken")
Expand Down
2 changes: 1 addition & 1 deletion tasks/price-consumer/read-price-feed-ens.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task("read-price-feed-ens", "Gets the latest price from a Chainlink Price Feed")
const V3Aggregator = await ethers.getContractFactory("MockV3Aggregator")
console.log("Reading data from Price Feed consumer contract ", ensAddress)

//Get signer information
// Get signer information
const accounts = await ethers.getSigners()
const signer = accounts[0]
const priceFeedConsumerContract = await new ethers.Contract(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ task(
"RandomNumberDirectFundingConsumerV2"
)

//Get signer information
// Get signer information
const accounts = await hre.ethers.getSigners()
const signer = accounts[0]

//Create connection to VRF Contract and call the getRandomNumber function
// Create connection to VRF Contract and call the getRandomNumber function
const vrfConsumerContractV2 = await RandomNumberConsumerV2.attach(contractAddr, signer)

const transaction = await vrfConsumerContractV2.requestRandomWords(
Expand Down
4 changes: 2 additions & 2 deletions tasks/random-number-consumer/request-random-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ task(
)
const RandomNumberConsumerV2 = await ethers.getContractFactory("RandomNumberConsumerV2")

//Get signer information
// Get signer information
const accounts = await hre.ethers.getSigners()
const signer = accounts[0]

//Create connection to VRF Contract and call the getRandomNumber function
// Create connection to VRF Contract and call the getRandomNumber function
const vrfConsumerContractV2 = new ethers.Contract(
contractAddr,
RandomNumberConsumerV2.interface,
Expand Down
Loading