getting different value from the amount i am funding in fundMe.sol #6469
Unanswered
coderashwini821115
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
describe("fund", function () {
it("fails if u don't send enough ETH", async () => {
await expect(fundMe.fund()).to.be.revertedWith(
"You need to spend more ETH!"
)
})
})
it("updated the amount funded data structure", async () => {
const fundTxResponse = await fundMe.fund({ value: sendValue })
await fundTxResponse.wait(1)
const response = await fundMe.getAddressToAmountFunded(deployer)
// const amountFunded = ethers.BigNumber.from(response)
assert.equal(response.toString(), sendValue.toString())
})
})
Beta Was this translation helpful? Give feedback.
All reactions