-3

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

0xnu
  • 1
  • 2

1 Answers1

0

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
}
Richard G
  • 163
  • 5