Skip to content

Commit

Permalink
Revert "test(explorer): fix the amount in withdraw parity test (#3370)"
Browse files Browse the repository at this point in the history
This reverts commit f09281b.
  • Loading branch information
ChiTimesChi committed Nov 5, 2024
1 parent f09281b commit f2f1139
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions services/explorer/backfill/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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,
Expand All @@ -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{
Expand All @@ -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,
Expand Down

0 comments on commit f2f1139

Please sign in to comment.