fix: bscgas property

This commit is contained in:
Danil Kovtonyuk 2021-06-10 23:33:59 +03:00
parent bb58318b6f
commit a508e41652
3 changed files with 2 additions and 5 deletions

@ -1,6 +1,6 @@
{ {
"name": "gas-price-oracle", "name": "gas-price-oracle",
"version": "0.3.1", "version": "0.3.2",
"description": "Gas Price Oracle library for Ethereum dApps.", "description": "Gas Price Oracle library for Ethereum dApps.",
"main": "lib/index.js", "main": "lib/index.js",
"homepage": "https://github.com/peppersec/gas-price-oracle", "homepage": "https://github.com/peppersec/gas-price-oracle",

@ -3,7 +3,7 @@ import { OffChainOracle, OffChainOracles, OnChainOracles } from '../types';
const bscgas: OffChainOracle = { const bscgas: OffChainOracle = {
name: 'bscgas', name: 'bscgas',
url: 'https://bscgas.info/gas', url: 'https://bscgas.info/gas',
instantPropertyName: 'imediate', instantPropertyName: 'instant',
fastPropertyName: 'fast', fastPropertyName: 'fast',
standardPropertyName: 'standard', standardPropertyName: 'standard',
lowPropertyName: 'slow', lowPropertyName: 'slow',

@ -207,9 +207,6 @@ describe('fetchMedianGasPriceOffChain', function () {
describe('askOracle', function () { describe('askOracle', function () {
it('all oracles should answer', async 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<OffChainOracle>) { for (const o of Object.values(offChainOracles) as Array<OffChainOracle>) {
try { try {
const gas: GasPrice = await oracle.askOracle(o); const gas: GasPrice = await oracle.askOracle(o);