dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
566 stars 507 forks source link

for whatever reason, it doesn't throw exception. i fixed the test to check for failed tx status instead: https://github.com/pauluhn/election/blob/paul/test/election.js#L54 #64

Open HimikaP opened 1 year ago

HimikaP commented 1 year ago
    for whatever reason, it doesn't throw exception. i fixed the test to check for failed tx status instead: https://github.com/pauluhn/election/blob/paul/test/election.js#L54

Originally posted by @pauluhn in https://github.com/dappuniversity/election/issues/1#issuecomment-366671606

I am still getting an error and my "double voting" test is failing

1) Contract: Election vote fails for double voting: AssertionError: accepts first vote: expected <BN: 0> to equal 1