mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 11:26:44 +01:00
Add get tokens endpoint
This commit is contained in:
@@ -51,7 +51,8 @@ func TestPriceUpdater(t *testing.T) {
|
||||
// Update prices
|
||||
pu.UpdatePrices()
|
||||
// Check that prices have been updated
|
||||
fetchedTokens, err := historyDB.GetTokens()
|
||||
limit := uint(10)
|
||||
fetchedTokens, _, err := historyDB.GetTokens(nil, nil, "", nil, &limit, historydb.OrderAsc)
|
||||
assert.NoError(t, err)
|
||||
for _, token := range fetchedTokens {
|
||||
assert.NotNil(t, token.USD)
|
||||
|
||||
Reference in New Issue
Block a user