Skip to content

Commit

Permalink
Updated dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 14, 2020
1 parent 3b7176f commit b1c6575
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CHANGELOG
=========

ethers/v4.0.46 (2020-03-14 16:56)
---------------------------------

- Fixed typo in error. ([#722](https://github.com/ethers-io/ethers.js/issues/722); [3b7176f](https://github.com/ethers-io/ethers.js/commit/3b7176f322376f8f42c333082388ef56d1720bae)).
- Fix EtherscanProvider from throwing outside async context. ([#729](https://github.com/ethers-io/ethers.js/issues/729); [5f7ddcd](https://github.com/ethers-io/ethers.js/commit/5f7ddcd5d71d8a1c9efbeef1232c34ef93f92e5a)).

ethers/v4.0.45 (2020-02-16 16:16)
---------------------------------

Expand Down
2 changes: 1 addition & 1 deletion _version.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export declare const version = "4.0.45";
export declare const version = "4.0.46";
2 changes: 1 addition & 1 deletion _version.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "4.0.45";
exports.version = "4.0.46";
6 changes: 3 additions & 3 deletions dist/ethers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethers = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "4.0.45";
exports.version = "4.0.46";

},{}],2:[function(require,module,exports){
"use strict";
Expand Down Expand Up @@ -11513,7 +11513,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
url += apiKey;
return get(url);
}
throw new Error('getBlock by blockHash not implmeneted');
return Promise.reject(new Error('getBlock by blockHash not implemeneted'));
case 'getTransaction':
url += '/api?module=proxy&action=eth_getTransactionByHash&txhash=' + params.transactionHash;
url += apiKey;
Expand All @@ -11530,7 +11530,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
url += '/api?module=proxy&action=eth_call' + transaction;
//url += '&tag=' + params.blockTag + apiKey;
if (params.blockTag !== 'latest') {
throw new Error('EtherscanProvider does not support blockTag for call');
return Promise.reject(new Error('EtherscanProvider does not support blockTag for call'));
}
url += apiKey;
return get(url);
Expand Down
2 changes: 1 addition & 1 deletion dist/ethers.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ethers.types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ declare module 'ethers/utils/shims' {
}

declare module 'ethers/_version' {
export const version = "4.0.45";
export const version = "4.0.46";
}

declare module 'ethers/utils/bignumber' {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethers",
"version": "4.0.45",
"version": "4.0.46",
"description": "Ethereum wallet library.",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions providers/etherscan-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
url += apiKey;
return get(url);
}
throw new Error('getBlock by blockHash not implmeneted');
return Promise.reject(new Error('getBlock by blockHash not implemeneted'));
case 'getTransaction':
url += '/api?module=proxy&action=eth_getTransactionByHash&txhash=' + params.transactionHash;
url += apiKey;
Expand All @@ -207,7 +207,7 @@ var EtherscanProvider = /** @class */ (function (_super) {
url += '/api?module=proxy&action=eth_call' + transaction;
//url += '&tag=' + params.blockTag + apiKey;
if (params.blockTag !== 'latest') {
throw new Error('EtherscanProvider does not support blockTag for call');
return Promise.reject(new Error('EtherscanProvider does not support blockTag for call'));
}
url += apiKey;
return get(url);
Expand Down
2 changes: 1 addition & 1 deletion src.ts/_version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "4.0.45";
export const version = "4.0.46";

0 comments on commit b1c6575

Please sign in to comment.