1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Export blacklist direct from recipient-blacklist (#8364)

This commit is contained in:
Whymarrh Whitby 2020-04-20 12:06:02 -02:30 committed by GitHub
parent bc99728e84
commit 7c3ffeb841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
import Config from './recipient-blacklist.js' import blacklist from './recipient-blacklist'
/** @module*/ /** @module*/
export default { export default {
@ -18,7 +18,7 @@ function checkAccount (networkId, account) {
} }
const accountToCheck = account.toLowerCase() const accountToCheck = account.toLowerCase()
if (Config.blacklist.includes(accountToCheck)) { if (blacklist.includes(accountToCheck)) {
throw new Error('Recipient is a public account') throw new Error('Recipient is a public account')
} }
} }

View File

@ -1,5 +1,4 @@
export default { const blacklist = [
'blacklist': [
// IDEX phisher // IDEX phisher
'0x9bcb0A9d99d815Bb87ee3191b1399b1Bcc46dc77', '0x9bcb0A9d99d815Bb87ee3191b1399b1Bcc46dc77',
// Ganache default seed phrases // Ganache default seed phrases
@ -13,5 +12,6 @@ export default {
'0x0f4f2ac550a1b4e2280d04c21cea7ebd822934b5', '0x0f4f2ac550a1b4e2280d04c21cea7ebd822934b5',
'0x6330a553fc93768f612722bb8c2ec78ac90b3bbc', '0x6330a553fc93768f612722bb8c2ec78ac90b3bbc',
'0x5aeda56215b167893e80b4fe645ba6d5bab767de', '0x5aeda56215b167893e80b4fe645ba6d5bab767de',
], ]
}
export default blacklist