From a508e41652282fe528b1d303397be1e88b760f87 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Thu, 10 Jun 2021 23:33:59 +0300 Subject: [PATCH] fix: bscgas property --- package.json | 2 +- src/config/binance.ts | 2 +- tests/index.test.ts | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 77d0f8b..931ea7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gas-price-oracle", - "version": "0.3.1", + "version": "0.3.2", "description": "Gas Price Oracle library for Ethereum dApps.", "main": "lib/index.js", "homepage": "https://github.com/peppersec/gas-price-oracle", diff --git a/src/config/binance.ts b/src/config/binance.ts index 7ea50ad..2678770 100644 --- a/src/config/binance.ts +++ b/src/config/binance.ts @@ -3,7 +3,7 @@ import { OffChainOracle, OffChainOracles, OnChainOracles } from '../types'; const bscgas: OffChainOracle = { name: 'bscgas', url: 'https://bscgas.info/gas', - instantPropertyName: 'imediate', + instantPropertyName: 'instant', fastPropertyName: 'fast', standardPropertyName: 'standard', lowPropertyName: 'slow', diff --git a/tests/index.test.ts b/tests/index.test.ts index bf8569d..567217a 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -207,9 +207,6 @@ describe('fetchMedianGasPriceOffChain', function () { describe('askOracle', function () { it('all oracles should answer', async function () { - // TODO: remove after fix POA - delete offChainOracles['poa']; - for (const o of Object.values(offChainOracles) as Array) { try { const gas: GasPrice = await oracle.askOracle(o);