You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug <tx hash> // to get the address of newly created bet. not sure why this is necessary since it should be returned previously. i'll have to fix that.
let bet = await LongBet.at('<address>')
await bet.acceptBet({from: accounts[0]})
await bet.acceptBet({from: accounts[1]})
await bet.acceptBet({from: accounts[2]})
// both predictor and challenger
await bet.vote(1, {from: accounts[0]})
await bet.vote(1, {from: accounts[1]})
// try to vote from arbiter acc, should fail b/c contract is resolved