Error : Missing argument #1456
Replies: 5 comments 10 replies
-
Can you post the complete contract? |
Beta Was this translation helpful? Give feedback.
-
It is throwing an error because the function |
Beta Was this translation helpful? Give feedback.
-
if you have used, |
Beta Was this translation helpful? Give feedback.
-
Then, use any account address |
Beta Was this translation helpful? Give feedback.
-
it("ensure the elibility of the voter", async function () {
const accounts = await ethers.getSigners()
const currentVoterEligibility = await voting.giveRightToVote(accounts[0].address)
const expectedEligibilityString = "1"
assert.equal(
expectedEligibilityString.toString(),
expectedEligibilityString
)
})
}) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This statement checks if voters's weight property is 0 or not, if it does, set the weight to 1..
so i wrote this test for it
but it looks like the error is coming from here as its looking for an argument, i already assigned 0 to it but didnt work..
and this is the error from terminal
Beta Was this translation helpful? Give feedback.
All reactions