mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
@@ -170,7 +170,7 @@ func assertTx(t *testing.T, expected, actual *common.PoolL2Tx) {
|
||||
token := tokens[expected.TokenID]
|
||||
// If the token has value in USD setted
|
||||
if token.USDUpdate != nil {
|
||||
assert.Equal(t, token.USDUpdate.Unix(), actual.AbsoluteFeeUpdate.Unix())
|
||||
assert.Less(t, token.USDUpdate.Unix()-3, actual.AbsoluteFeeUpdate.Unix())
|
||||
expected.AbsoluteFeeUpdate = actual.AbsoluteFeeUpdate
|
||||
// Set expected fee
|
||||
f := new(big.Float).SetInt(expected.Amount)
|
||||
|
||||
@@ -85,9 +85,6 @@ CREATE FUNCTION hez_idx(BIGINT, VARCHAR)
|
||||
AS
|
||||
$BODY$
|
||||
BEGIN
|
||||
IF $1 = 1 THEN
|
||||
RETURN 'hez:EXIT:1';
|
||||
END IF;
|
||||
RETURN 'hez:' || $2 || ':' || $1;
|
||||
END;
|
||||
$BODY$
|
||||
|
||||
Reference in New Issue
Block a user