Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rinkeby Network Staging Test Fails #16

Open
dibakarsutradhar opened this issue Jun 2, 2022 · 0 comments
Open

Rinkeby Network Staging Test Fails #16

dibakarsutradhar opened this issue Jun 2, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dibakarsutradhar
Copy link
Owner

Testnet Staging Staging Test is Failing currently.

Test Report -

FundMe

    1) allows people to fund and withdraw

  FundMe
    constructor

      2) "before each" hook for "sets the aggregator addresses correctly"


  0 passing (50s)
  2 failing

Test Fail Error -

1) FundMe
       allows people to fund and withdraw:
     Error: insufficient funds for intrinsic transaction cost [ See: https://links.ethers.org/v5-errors-INSUFFICIENT_FUNDS ] (error={"name":"ProviderError","code":-32000,"_isProviderError":true}, method="estimateGas", transaction={"from":"0xb15310296b81fF9336E46a21451CB721B61515Ec","to":"0xACE8ca0A5a28627584c2faC32F2e29cD95A6A034","value":{"type":"BigNumber","hex":"0x0de0b6b3a7640000"},"data":"0xb60d4288","accessList":null}, code=INSUFFICIENT_FUNDS, version=providers/5.6.8)
      at Logger.makeError (node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
      at Logger.throwError (node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
      at checkError (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:98:16)
      at EthersProviderWrapper.<anonymous> (node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:603:20)
      at step (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
      at Object.throw (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
      at rejected (node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
      at processTicksAndRejections (internal/process/task_queues.js:95:5)

2) FundMe
     "before each" hook for "sets the aggregator addresses correctly":
   Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/dibakar/Downloads/Projects/smart-contracts/hardhat-fund-me/test/unit/FundMe.test.js)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)

FundMe.staging.test.js code -

const { assert } = require('chai');
const { ethers, getNamedAccounts, network } = require('hardhat');
const { developmentChains } = require('../../helper-hardhat-config');

developmentChains.includes(network.name)
 ? describe.skip
 : describe('FundMe', async () => {
     let fundMe;
     let deployer;
     const sendValue = ethers.utils.parseEther('1');

     beforeEach(async () => {
       deployer = (await getNamedAccounts()).deployer;
       fundMe = await ethers.getContract('FundMe', deployer);
     });

     it('allows people to fund and withdraw', async () => {
       await fundMe.fund({ value: sendValue });
       await fundMe.withdraw();
       const endingBalance = await fundMe.provider.getBalance(fundMe.address);

       assert.equal(endingBalance.toString(), '0');
     });
   });
@dibakarsutradhar dibakarsutradhar self-assigned this Jun 2, 2022
@dibakarsutradhar dibakarsutradhar added the bug Something isn't working label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant