PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 183 forks source link

Fix unit test variable #176

Closed akinsikuoluwafemi closed 11 months ago

akinsikuoluwafemi commented 11 months ago

when running test, this case, threw an error because startingBalance variable wasn't initialized in the test context

it("picks a winner, resets, and sends money",  async () => {
  ....
})
so i just added a let startingBalance above;
PatrickAlphaC commented 11 months ago

Thanks for this PR!

Right now, there are too many changes if the change is small. It looks like you reformatted it. Could you fix the formatting?

akinsikuoluwafemi commented 11 months ago

Thanks. This is the new link, to the PR.

https://github.com/PatrickAlphaC/hardhat-smartcontract-lottery-fcc/pull/181