Hi guys, there are two pieces of code - contract and tests. Here's the thing, the first test fails, the thing is that there's one mapping which in require() checks the value for msg.sender key, but in the contract I send an array of accounts that I pulled from getSigners(), and it turns out they should have different addresses, but the test fails for some reason.
I'm talking about the first test and the vote() function

May 18, 2023, 8:55 PM
May 18, 2023, 8:55 PM
could u show the error plz?
May 18, 2023, 9:01 PM
sorry, already fixed that, first time working with tests, forgot to add "connect(acc)" in voting function
May 18, 2023, 9:02 PM
_ is used for readability
May 18, 2023, 10:16 PM

© 2024 Draquery.com All rights reserved.