1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

fix merge

This commit is contained in:
Esteban MIno 2018-08-07 17:53:36 -04:00
parent 3f57d5f66b
commit 15ea8c04b2

View File

@ -454,6 +454,7 @@ class PreferencesController {
const numDecimals = parseInt(decimals, 10)
if (isNaN(numDecimals) || numDecimals > 18 || numDecimals < 0) throw new Error(`Invalid decimals ${decimals}`)
if (!isValidAddress(rawAddress)) throw new Error(`Invalid address ${rawAddress}`)
}
/**
* Subscription to network provider type.