11const { networkConfig, autoFundCheck } = require ( '../helper-hardhat-config' )
2- const { ethers, getNamedAccounts} = require ( 'hardhat' )
2+ const { ethers, getNamedAccounts } = require ( 'hardhat' )
33
44module . exports = async ( {
55 getNamedAccounts,
@@ -29,7 +29,7 @@ module.exports = async ({
2929 const apiConsumer = await ethers . getContractAt ( 'APIConsumer' , APIConsumer . address )
3030
3131 if ( await autoFundCheck ( apiConsumer . address , networkName , linkTokenAddress , additionalMessage ) ) {
32- await hre . run ( "fund-link" , { contract : apiConsumer . address , linkaddress : linkTokenAddress } )
32+ await hre . run ( "fund-link" , { contract : apiConsumer . address , linkaddress : linkTokenAddress } )
3333 } else {
3434 log ( "Then run API Consumer contract with following command:" )
3535 log ( "npx hardhat request-data --contract " + apiConsumer . address + " --network " + networkName )
@@ -43,10 +43,10 @@ module.exports = async ({
4343 const randomNumberConsumer = await ethers . getContractAt ( 'RandomNumberConsumer' , RandomNumberConsumer . address )
4444
4545 if ( await autoFundCheck ( apiConsumer . address , networkName , linkTokenAddress , additionalMessage ) ) {
46- await hre . run ( "fund-link" , { contract : randomNumberConsumer . address , linkaddress : linkTokenAddress } )
46+ await hre . run ( "fund-link" , { contract : randomNumberConsumer . address , linkaddress : linkTokenAddress } )
4747 } else {
48- log ( "Then run RandomNumberConsumer contract with the following command, replacing '777' with your chosen seed number :" )
49- log ( "npx hardhat request-random-number --contract " + randomNumberConsumer . address , " --seed '777'" + " --network " + networkName )
48+ log ( "Then run RandomNumberConsumer contract with the following command:" )
49+ log ( "npx hardhat request-random-number --contract " + randomNumberConsumer . address + " --network " + networkName )
5050 }
5151 log ( "----------------------------------------------------" )
5252
0 commit comments