Skip to content

Commit 6db19a5

Browse files
authored
Merge pull request #202 from oncecelll/main
chore: fix some minor issues in the comments
2 parents 2384721 + 5800831 commit 6db19a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tasks/balance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ task("balance", "Prints an account's balances of native and LINK tokens")
1111
const networkId = network.config.chainId
1212
const provider = signer.provider
1313

14-
// native token
14+
// Get native token balance
1515
const balance = await provider.getBalance(account)
1616

17-
// fetch link balance
17+
// Fetch LINK token balance
1818
const linkTokenAddress = networkConfig[networkId]["linkToken"] || taskArgs.linkaddress
1919
const LinkToken = await ethers.getContractFactory("MockLinkToken")
2020
const linkTokenContract = await LinkToken.attach(linkTokenAddress)

tasks/transfer-link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ task("transfer-link", "Transfer LINK tokens to a recipient")
1212
const { recipient: recipientAddress, amount } = taskArgs
1313
const networkId = network.config.chainId
1414

15-
//Get signer information
15+
// Get signer information
1616
const accounts = await hre.ethers.getSigners()
1717
const signer = accounts[0]
1818

tasks/withdraw-link.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ task("withdraw-link", "Returns any LINK left in deployed contract")
77
const contractAddr = taskArgs.contract
88
const networkId = network.config.chainId
99

10-
//Get signer information
10+
// Get signer information
1111
const accounts = await hre.ethers.getSigners()
1212
const signer = accounts[0]
1313

14-
//First, lets see if there is any LINK to withdraw
14+
// First, let's see if there is any LINK to withdraw
1515
const linkTokenAddress = networkConfig[networkId]["linkToken"] || taskArgs.linkaddress
1616
const LinkToken = await ethers.getContractFactory("MockLinkToken")
1717
const linkTokenContract = new ethers.Contract(linkTokenAddress, LinkToken.interface, signer)
@@ -22,7 +22,7 @@ task("withdraw-link", "Returns any LINK left in deployed contract")
2222
)
2323

2424
if (balance > 0) {
25-
//Could also be Any-API contract, but in either case the function signature is the same, so we just need to use one
25+
// Could also be a RandomNumberConsumer contract, but in either case the function signature is the same, so we just need to use one
2626
const RandomNumberConsumer = await ethers.getContractFactory("RandomNumberConsumer")
2727

2828
//Create connection to Consumer Contract and call the withdraw function

0 commit comments

Comments
 (0)