mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Adding hex address guard to input validation for token sends (#11608)
This commit is contained in:
parent
02318df48c
commit
d03dc311ee
@ -858,6 +858,7 @@ const slice = createSlice({
|
||||
|
||||
if (
|
||||
isSendingToken &&
|
||||
isValidHexAddress(recipient.userInput) &&
|
||||
(toChecksumAddress(recipient.userInput) in contractMap ||
|
||||
checkExistingAddresses(recipient.userInput, tokens))
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user