Version bump (patch).
This commit is contained in:
parent
0e9df5cb76
commit
c697a5bc81
4
dist/ethers-wallet.js
vendored
4
dist/ethers-wallet.js
vendored
@ -2221,12 +2221,14 @@ var zero = new utils.BN(0);
|
||||
var negative1 = new utils.BN(-1);
|
||||
var tenPower18 = new utils.BN('1000000000000000000');
|
||||
utils.defineProperty(Wallet, 'formatEther', function(wei, options) {
|
||||
|
||||
if (typeof(wei) === 'number') {
|
||||
// @TODO: Warn if truncation will occur?
|
||||
wei = new utils.BN(wei);
|
||||
} else if (utils.isHexString(wei)) {
|
||||
wei = new utils.BN(wei.substring(2));
|
||||
wei = new utils.BN(wei.substring(2), 16);
|
||||
}
|
||||
|
||||
if (!options) { options = {}; }
|
||||
|
||||
if (!(wei instanceof utils.BN)) { throw new Error('invalid wei'); }
|
||||
|
2
dist/ethers-wallet.min.js
vendored
2
dist/ethers-wallet.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ethers-wallet",
|
||||
"version": "0.0.9",
|
||||
"version": "0.0.10",
|
||||
"description": "Ethereum wallet library.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user