Skip to content

Commit

Permalink
Update SpokePoolClient.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Feb 13, 2025
1 parent 329d44c commit 4333390
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/clients/SpokePoolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,11 +660,7 @@ export class SpokePoolClient extends BaseAbstractClient {
if (this.depositHashes[getRelayEventKey(deposit)] !== undefined) {
// Sanity check that this event is not a duplicate, even though the relay data hash is a duplicate.
const allDeposits = this._getDuplicateDeposits(deposit).concat(this.depositHashes[getRelayEventKey(deposit)]);
if (
allDeposits.some((e) => {
return duplicateEvent(deposit, e);
})
) {
if (allDeposits.some((e) => duplicateEvent(deposit, e))) {
duplicateEvents.push(event);
continue;
}
Expand Down

0 comments on commit 4333390

Please sign in to comment.