mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Allow price update configuration to be specified per token
This commit is contained in:
@@ -306,7 +306,7 @@ func TestMain(m *testing.M) {
|
||||
USD: ðUSD,
|
||||
USDUpdate: ðNow,
|
||||
})
|
||||
err = api.h.UpdateTokenValue(test.EthToken.Symbol, ethUSD)
|
||||
err = api.h.UpdateTokenValue(common.EmptyAddr, ethUSD)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@@ -333,7 +333,7 @@ func TestMain(m *testing.M) {
|
||||
token.USD = &value
|
||||
token.USDUpdate = &now
|
||||
// Set value in DB
|
||||
err = api.h.UpdateTokenValue(token.Symbol, value)
|
||||
err = api.h.UpdateTokenValue(token.EthAddr, value)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user