Skip to content

Commit

Permalink
Revert "fix(storage): return withdrawals for address for l1 and l2 ad…
Browse files Browse the repository at this point in the history
…drs matches (#378)"

This reverts commit b0628f1.
  • Loading branch information
montekki committed Feb 21, 2024
1 parent a7a5918 commit 46c6a18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1403,10 +1403,7 @@ pub async fn withdrawals_for_address(
AND finalization_data.l2_tx_number_in_block = l2_to_l1_events.tx_number_in_block
JOIN withdrawals ON
withdrawals.id = finalization_data.withdrawal_id
WHERE
l2_to_l1_events.to_address = $1
OR
finalization_data.sender = $1
WHERE l2_to_l1_events.to_address = $1
ORDER BY l2_to_l1_events.l2_block_number DESC
LIMIT $2
",
Expand Down

0 comments on commit 46c6a18

Please sign in to comment.