Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions contracts/payments.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,10 @@ func (p *PaymentsContract) GetRailsForPayerAndToken(ctx context.Context, payer,

results := make([]RailInfoResult, len(rawResults))
for i, r := range rawResults {
results[i] = RailInfoResult{
RailId: r.RailId,
IsTerminated: r.IsTerminated,
EndEpoch: r.EndEpoch,
}
// abi.Unpack produces an anonymous struct whose fields and types
// match RailInfoResult exactly; struct tags don't affect Go's
// conversion identity. (gosimple S1016)
results[i] = RailInfoResult(r)
}

return results, values[1].(*big.Int), values[2].(*big.Int), nil
Expand Down
Loading