mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Merge aee80fe824 into cf33d8b83c
This commit is contained in:
commit
03b6ef85c7
2 changed files with 18 additions and 14 deletions
File diff suppressed because one or more lines are too long
|
|
@ -2132,7 +2132,7 @@ var getValueOfUnit = function (unit) {
|
|||
unit = unit ? unit.toLowerCase() : 'ether';
|
||||
var unitValue = unitMap[unit];
|
||||
if (unitValue === undefined) {
|
||||
throw new Error('This unit doesn\'t exists, please use the one of the following units' + JSON.stringify(unitMap, null, 2));
|
||||
throw new Error('This unit doesn\'t exist, please use the one of the following units' + JSON.stringify(unitMap, null, 2));
|
||||
}
|
||||
return new BigNumber(unitValue, 10);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue