mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge branch 'master' into i1118-IncreaseGasBuffer
This commit is contained in:
commit
0889309bf3
@ -188,7 +188,7 @@ class KeyringController extends EventEmitter {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case 'Simple Key Pair':
|
case 'Simple Key Pair':
|
||||||
let isNotIncluded = !accounts.find((key) => key === newAccount[0] || key === ethUtil.stripHexPrefix(newAccount[0]))
|
let isNotIncluded = !accounts.find((key) => key === newAccount[0] || key === ethUtil.stripHexPrefix(newAccount[0]))
|
||||||
return (isNotIncluded) ? Promise.resolve(newAccount) : Promise.reject(new Error('The account your are trying to import is a duplicate'))
|
return (isNotIncluded) ? Promise.resolve(newAccount) : Promise.reject(new Error('The account you\'re are trying to import is a duplicate'))
|
||||||
default:
|
default:
|
||||||
return Promise.resolve(newAccount)
|
return Promise.resolve(newAccount)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user