From 4e6e5f1b30b0986244be3379e00b2d74be4b22cd Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 24 Nov 2020 18:31:40 +0200 Subject: [PATCH] fix travis --- src/providers/OceanProvider/OceanProvider.tsx | 8 +------- src/utils/dtUtils.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/providers/OceanProvider/OceanProvider.tsx b/src/providers/OceanProvider/OceanProvider.tsx index 39d418e..c07b9c4 100644 --- a/src/providers/OceanProvider/OceanProvider.tsx +++ b/src/providers/OceanProvider/OceanProvider.tsx @@ -9,13 +9,7 @@ import React, { } from 'react' import Web3 from 'web3' import ProviderStatus from './ProviderStatus' -import { - Ocean, - Logger, - Account, - Config, - PurgatoryData -} from '@oceanprotocol/lib' +import { Ocean, Logger, Account, Config } from '@oceanprotocol/lib' import Web3Modal, { ICoreOptions } from 'web3modal' import { getDefaultProviders } from './getDefaultProviders' import { getAccountId, getBalance } from 'utils' diff --git a/src/utils/dtUtils.ts b/src/utils/dtUtils.ts index e00db3b..03b42f1 100644 --- a/src/utils/dtUtils.ts +++ b/src/utils/dtUtils.ts @@ -184,7 +184,7 @@ export async function getFirstPoolPrice( } } - let firstPoolPrice = await ocean.pool.calcInGivenOut( + const firstPoolPrice = await ocean.pool.calcInGivenOut( firstPoolAddress, dataTokenAddress, ocean.pool.oceanAddress,