Zenigame
@zeni.eth
Looking for some help debugging my completed contract that I can't get to pass. 1000 DEGEN tip for the first that can help me figure out what I'm doing wrong and get it to pass @bountybot link to spec and source code in the comments
7 replies
1 recast
7 reactions
floar.eth γπ©π΅βͺοΈ
@floar.eth
You are missing the voters in the IssueData you are returning. The unit test checks for: Assert.equal(issue.voters.length, 4) at some point
3 replies
0 recast
1 reaction
floar.eth γπ©π΅βͺοΈ
@floar.eth
A way around that is adding a address[] voters to your resturn struct and the in the getIssue parse the enumerable into a memory array. If you want the solution, here is a gist with your modified contract that passed the tests: https://gist.github.com/floAr/09e8fe5514b764ba4654bd279c6eefb5
1 reply
0 recast
0 reaction
Zenigame
@zeni.eth
Damn. This worked. How can you see what the unit test checks for? Thank you! 2000 $DEGEN (extra 1k cause I totally missed this and was getting frustrated)
1 reply
0 recast
1 reaction
Apex777.eth
@apex777.eth
Based 777 $DEGEN
0 reply
0 recast
1 reaction