Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jan 23, 2024
1 parent f7b669a commit 13b456b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridge-history-api/internal/logic/l1_event_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (e *L1EventParser) ParseL1CrossChainEventLogs(ctx context.Context, logs []t
return nil, nil, err
}
from := event.Sender.String()
if event.Sender.String() == e.cfg.GatewayRouterAddr {
if from == e.cfg.GatewayRouterAddr {
tx, isPending, rpcErr := e.client.TransactionByHash(ctx, vlog.TxHash)
if rpcErr != nil || isPending {
log.Warn("Failed to get tx or the tx is still pending", "rpcErr", rpcErr, "isPending", isPending)
Expand Down
2 changes: 1 addition & 1 deletion bridge-history-api/internal/logic/l2_event_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (e *L2EventParser) ParseL2EventLogs(ctx context.Context, logs []types.Log,
return nil, nil, err
}
from := event.Sender.String()
if event.Sender.String() == e.cfg.GatewayRouterAddr {
if from == e.cfg.GatewayRouterAddr {
tx, isPending, rpcErr := e.client.TransactionByHash(ctx, vlog.TxHash)
if err != nil || isPending {
log.Warn("Failed to get tx or the tx is still pending", "rpcErr", rpcErr, "isPending", isPending)
Expand Down

0 comments on commit 13b456b

Please sign in to comment.