简体   繁体   中英

how should i use chainlink keeper

I'm learning free code camp solidity-js,(https://github.com/PatrickAlphaC/hardhat-smartcontract-lottery-fcc) following the video I wrote the code

I have deployed the raffle contract, and set up chainlink keeper, chainlink vrf, but when I run raffle.staging.test.js, my address sends eth to the contract address, but checkupkeep doesn't work, what could be causing this error

enter image description here

enter image description here enter image description here

Two things to check:

  1. Your accounts have balances.
  2. Your timeout is set correctly. ( https://hardhat.org/config/#json-rpc-based-networks )

example:

rinkeby: {
  url: RINKEBY_RPC_URL,
  accounts: PRIVATE_KEY !== undefined ? [PRIVATE_KEY] : [],
            //   accounts: {
            //     mnemonic: MNEMONIC,
            //   },
  saveDeployments: true,
  chainId: 4,
  timeout: 60000
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM