File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/components/Views/confirmations/hooks/send/evm Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { selectAddressBook } from '../../../../../../selectors/addressBookContro
2222import { selectInternalAccounts } from '../../../../../../selectors/accountsController' ;
2323import { 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 } ;
You can’t perform that action at this time.
0 commit comments