Skip to content

Commit

Permalink
Merge pull request zenon-network#21 from HyperCore-Team/master
Browse files Browse the repository at this point in the history
sort unwraps on rpc call
  • Loading branch information
interstellartraveler77 authored Jul 20, 2023
2 parents e3241c5 + c00a98b commit 24a926a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/api/embedded/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ func (a *BridgeApi) GetAllUnwrapTokenRequestsByToAddress(toAddress string, pageI
specificRequests = append(specificRequests, request)
}
}
sort.Slice(specificRequests[:], func(i, j int) bool {
return specificRequests[i].RegistrationMomentumHeight > specificRequests[j].RegistrationMomentumHeight
})

}
result.Count = len(specificRequests)
Expand Down

0 comments on commit 24a926a

Please sign in to comment.