mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-05 19:05:03 +00:00
web3: regression. Fixes #1613
This commit is contained in:
parent
ac10c9352e
commit
a33726b7db
1 changed files with 2 additions and 2 deletions
|
|
@ -1137,10 +1137,10 @@ var toHex = function (val) {
|
|||
if (isString(val)) {
|
||||
if (val.indexOf('-0x') === 0)
|
||||
return fromDecimal(val);
|
||||
else if (!isFinite(val))
|
||||
return fromAscii(val);
|
||||
else if(val.indexOf('0x') === 0)
|
||||
return val;
|
||||
else if (!isFinite(val))
|
||||
return fromAscii(val);
|
||||
}
|
||||
|
||||
return fromDecimal(val);
|
||||
|
|
|
|||
Loading…
Reference in a new issue