diff --git a/package.json b/package.json index dcf0697..b38e6f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zaidan-dealer-client", - "version": "0.3.8", + "version": "0.3.9", "main": "dist/index.js", "repository": "https://github.com/ParadigmFoundation/zaidan-dealer-client", "license": "MIT", @@ -66,4 +66,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} diff --git a/src/DealerClient.ts b/src/DealerClient.ts index 5432178..c08952d 100644 --- a/src/DealerClient.ts +++ b/src/DealerClient.ts @@ -549,8 +549,8 @@ export class DealerClient { private async _getGasPrice(priority: GasPriority): Promise { const gasPriceApi = "https://www.etherchain.org/api/gasPriceOracle"; - const prices = await this._callAny(gasPriceApi, "GET"); - return new BigNumber(prices[priority]); + const prices = await axios(gasPriceApi); + return new BigNumber(prices.data[priority]); } private async _loadAssets(): Promise {