internal/web3: fix typo in error message

- internal/web3: fix typo in error message
- also regenerate bindata.go from web3.js

Signed-off-by: Hyung-Kyu Choi <hyungkyu.choi@gmail.com>
This commit is contained in:
Hyung-Kyu Choi 2018-09-05 15:19:46 +09:00
parent 42bd67bd6f
commit aee80fe824
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'; unit = unit ? unit.toLowerCase() : 'ether';
var unitValue = unitMap[unit]; var unitValue = unitMap[unit];
if (unitValue === undefined) { 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); return new BigNumber(unitValue, 10);
}; };