Skip to content

Commit bc8391e

Browse files
committed
Update unit tests
1 parent d1f40d6 commit bc8391e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/Views/confirmations/hooks/send/evm/useEvmToAddressValidation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { selectAddressBook } from '../../../../../../selectors/addressBookContro
2222
import { selectInternalAccounts } from '../../../../../../selectors/accountsController';
2323
import { useSendContext } from '../../../context/send-context';
2424

25-
const BURN_ADDRESSES = [
25+
const LOWER_CASED_BURN_ADDRESSES = [
2626
'0x0000000000000000000000000000000000000000',
2727
'0x000000000000000000000000000000000000dead',
2828
];
@@ -71,7 +71,7 @@ const validateHexAddress = async (
7171
error?: string;
7272
warning?: string;
7373
}> => {
74-
if (BURN_ADDRESSES.includes(toAddress)) {
74+
if (LOWER_CASED_BURN_ADDRESSES.includes(toAddress?.toLowerCase())) {
7575
return {
7676
error: strings('transaction.invalid_address'),
7777
};

0 commit comments

Comments
 (0)