This commit is contained in:
Hyung-Kyu Hqueue Choi 2018-09-05 08:48:00 +00:00 committed by GitHub
commit 03b6ef85c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 14 deletions

File diff suppressed because one or more lines are too long

View file

@ -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);
};