Open raxuser100 opened 2 years ago
@raxuser100 I'd run into the same issue, too, but when I examined .github/workflows/tests.yml
, I discovered that I should've been runing Node 12.x instead of the Node 14.x that I was running.
So, I launched it in a container running that version and had to fix a line in NonfungiblePositionManager.spec.ts
to cast gasPrice as BigNumberish in order to have tests with no errors:
expect(balanceBefore).to.eq(balanceAfter.add(receipt.gasUsed.mul(tx.gasPrice as BigNumberish)).add(100))
That seems to have fix the majority of the test errors.
While perhaps some better documentation in the README will clear this up for others in the future, it may not be a bug.
Downloaded the repo, unmodified and attempted to run hardhat tests. Getting a typescript error, when executing terminal command
npx hardhat test