From f2f113998ca88f4a4c3c38ecd43022fd45b0d02d Mon Sep 17 00:00:00 2001 From: ChiTimesChi <88190723+ChiTimesChi@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:40:43 +0000 Subject: [PATCH] Revert "test(explorer): fix the amount in withdraw parity test (#3370)" This reverts commit f09281bdaf8d662fe9116ba18068228010353c71. --- services/explorer/backfill/chain_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/services/explorer/backfill/chain_test.go b/services/explorer/backfill/chain_test.go index 5dfed374ed..7f6e15bfa6 100644 --- a/services/explorer/backfill/chain_test.go +++ b/services/explorer/backfill/chain_test.go @@ -869,7 +869,6 @@ func (b *BackfillSuite) withdrawParity(log *types.Log, parser *parser.BridgePars String: common.Bytes2Hex(parsedLog.Kappa[:]), Valid: true, } - amountMinusFee := new(big.Int).Sub(parsedLog.Amount, parsedLog.Fee) var count int64 events := b.db.UNSAFE_DB().WithContext(b.GetTestContext()).Model(&sql.BridgeEvent{}). Where(&sql.BridgeEvent{ @@ -879,7 +878,7 @@ func (b *BackfillSuite) withdrawParity(log *types.Log, parser *parser.BridgePars BlockNumber: log.BlockNumber, TxHash: log.TxHash.String(), Token: parsedLog.Token.String(), - Amount: amountMinusFee, + Amount: parsedLog.Amount, Recipient: recipient, Fee: parsedLog.Fee, @@ -903,7 +902,6 @@ func (b *BackfillSuite) withdrawParity(log *types.Log, parser *parser.BridgePars String: common.Bytes2Hex(parsedLog.Kappa[:]), Valid: true, } - amountMinusFee := new(big.Int).Sub(parsedLog.Amount, parsedLog.Fee) var count int64 events := b.db.UNSAFE_DB().WithContext(b.GetTestContext()).Model(&sql.BridgeEvent{}). Where(&sql.BridgeEvent{ @@ -913,7 +911,7 @@ func (b *BackfillSuite) withdrawParity(log *types.Log, parser *parser.BridgePars BlockNumber: log.BlockNumber, TxHash: log.TxHash.String(), Token: parsedLog.Token.String(), - Amount: amountMinusFee, + Amount: parsedLog.Amount, Recipient: recipient, Fee: parsedLog.Fee,