Commit 801cf26f authored by Zvezdin .'s avatar Zvezdin .

Announce result implementation

parent cdbc337a
......@@ -195,9 +195,17 @@ function updateBet(eventID, betType, betID, values, odd, number) {
});
}
//function announceResult(eventID, betType) {
//
//}
function announceResult(eventID, betType, values) {
return new Promise((accept, reject) => {
inst.announceResult(eventID, betType, values, {"from": acc}, function(err, res){
if(!err) {
accept(res);
} else {
reject(err);
}
});
});
}
function placeBet(eventID, betID, val) {
return new Promise((accept, reject) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment