Zenigame pfp
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 γƒ„πŸŽ©πŸ”΅βšͺ️  pfp
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 γƒ„πŸŽ©πŸ”΅βšͺ️  pfp
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 pfp
Zenigame
@zeni.eth
just saw this. thank you. this is what I ended up doing anyway
0 reply
0 recast
0 reaction