mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Sort outcomes in decodeoffer
response (#4094)
* Sort outcomes in `decodeoffer` response * scalafmt Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
This commit is contained in:
parent
e8ee5d7339
commit
4e6c68155e
@ -625,7 +625,9 @@ object Picklers {
|
||||
Vector(writeJs(hyperbolaPiece))
|
||||
}
|
||||
|
||||
Obj(PicklerKeys.pointsKey -> (endPointsJs ++ midPointJs))
|
||||
val points =
|
||||
(endPointsJs ++ midPointJs).sortBy(_.obj(PicklerKeys.outcomeKey).num)
|
||||
Obj(PicklerKeys.pointsKey -> points)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user