Skip to content

Commit

Permalink
use all lower case for includes
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Mar 27, 2023
1 parent 191a65e commit f791093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal_transfers/actions/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export function transferInvolves(
transfer: TransferEvent,
address: string
): boolean {
return [transfer.to, transfer.from].includes(address);
return [transfer.to.toLowerCase(), transfer.from.toLowerCase()].includes(
address.toLowerCase()
);
}

0 comments on commit f791093

Please sign in to comment.