fix: default values

This commit is contained in:
Danil Kovtonyuk 2021-11-16 01:51:22 +10:00
parent 64c5a68639
commit 76f8cb036d
No known key found for this signature in database
GPG Key ID: E72A919BF08C3746
2 changed files with 3 additions and 3 deletions

@ -1,6 +1,6 @@
{ {
"name": "gas-price-oracle", "name": "gas-price-oracle",
"version": "0.4.2", "version": "0.4.3",
"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",

@ -17,8 +17,8 @@ import {
const defaultFastGas = 22; const defaultFastGas = 22;
export class GasPriceOracle { export class GasPriceOracle {
lastGasPrice: GasPrice; lastGasPrice: GasPrice;
offChainOracles: OffChainOracles; offChainOracles: OffChainOracles = {};
onChainOracles: OnChainOracles; onChainOracles: OnChainOracles = {};
configuration: Config = { configuration: Config = {
chainId: ChainId.MAINNET, chainId: ChainId.MAINNET,
defaultRpc: 'https://api.mycryptoapi.com/eth', defaultRpc: 'https://api.mycryptoapi.com/eth',