Commit d89058e1 authored by Zvezdin .'s avatar Zvezdin .

Return id by getEventById

parent 801cf26f
......@@ -94,8 +94,9 @@ contract Better {
return eventIDs;
}
function getEventByID(uint id) public eventExists(id) view returns (uint ts, string home, string away, string sport, uint[] betTypes, uint[] closedBetTypes, bool active) {
Event storage ev = events[id];
function getEventByID(uint eventID) public eventExists(id) view returns (uint id, uint ts, string home, string away, string sport, uint[] betTypes, uint[] closedBetTypes, bool active) {
Event storage ev = events[eventID];
id = eventID;
ts = ev.ts;
home = ev.home;
away = ev.away;
......
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