AdChain / AdChainRegistry

adChain registry smart contracts
Apache License 2.0
30 stars 10 forks source link

Fix #20: when no voters participate, give all stake to the challenge winner #25

Closed skmgoldin closed 6 years ago

skmgoldin commented 6 years ago

This was unhandled edge case discovered by @eccheung4. Gracias @eccheung4.

This PR also swaps out bn.js for BigNumber.js (it was convenient to be able to use decimals in the tests), and fills out test stubs in the challenge block.