[SDK] Hotfix tx history order

This commit is contained in:
altafan
2024-09-27 17:50:16 +02:00
parent 72e31d839a
commit a3deb2d596

View File

@@ -756,7 +756,7 @@ func (a *covenantlessArkClient) GetTransactionHistory(ctx context.Context) ([]Tr
if txi.CreatedAt.Equal(txj.CreatedAt) { if txi.CreatedAt.Equal(txj.CreatedAt) {
return txi.Type > txj.Type return txi.Type > txj.Type
} }
return txi.CreatedAt.Before(txj.CreatedAt) return txi.CreatedAt.After(txj.CreatedAt)
}) })
return txs, nil return txs, nil