mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
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:
parent
42bd67bd6f
commit
aee80fe824
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';
|
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);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue