mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix merge
This commit is contained in:
parent
3f57d5f66b
commit
15ea8c04b2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user