Skip to content

Commit

Permalink
Merge pull request #297 from Junyong-Suh/allowlist_lowercase_compare
Browse files Browse the repository at this point in the history
feat: allowlist to compare with lowercases
  • Loading branch information
Junyong-Suh authored May 27, 2024
2 parents e918ec1 + 4e43bb7 commit 2303299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/src/observers/nine-chronicles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,8 @@ export class NCGTransferredEventObserver
): { accountType: ACCOUNT_TYPE; description?: string } {
for (const whitelistAccount of this._whitelistAccounts) {
if (
whitelistAccount.from === sender &&
whitelistAccount.to === recipient
whitelistAccount.from.toLowerCase() === sender.toLowerCase() &&
whitelistAccount.to.toLowerCase() === recipient.toLowerCase()
) {
return {
accountType: whitelistAccount.type,
Expand Down

0 comments on commit 2303299

Please sign in to comment.