From e4e2d13bd654de74c8757f3273c647cb9a98cf40 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 7 Sep 2020 16:29:05 +0200 Subject: [PATCH] update OceanProvider docs * closes #95 --- src/providers/OceanProvider/README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/providers/OceanProvider/README.md b/src/providers/OceanProvider/README.md index f983494..58fddd6 100644 --- a/src/providers/OceanProvider/README.md +++ b/src/providers/OceanProvider/README.md @@ -14,13 +14,8 @@ Wrap your whole app with the `OceanProvider`: ```tsx import React, { ReactNode } from 'react' -import { OceanProvider, Config } from '@oceanprotocol/react' - -const config: Config = { - nodeUri: '', - metadataStoreUri: '', - ... -} +import { OceanProvider } from '@oceanprotocol/react' +import { ConfigHelper } from '@oceanprotocol/lib' const web3ModalOpts = { network: 'mainnet', // optional @@ -33,10 +28,15 @@ export default function MyApp({ }: { children: ReactNode }): ReactNode { + const oceanInitialConfig = new ConfigHelper().getConfig( + 'mainnet', + 'INFURA_PROJECT_ID' + ) + return ( - -

My App

- {children} + +

My App

+ {children}
) }