mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
make web3 working again
This commit is contained in:
parent
8d23868a9d
commit
7cc2de7d8b
@ -11,9 +11,9 @@ import {
|
||||
verbose
|
||||
} from './config'
|
||||
|
||||
export async function provideOcean(web3provider: Web3) {
|
||||
export async function provideOcean(web3Provider: Web3) {
|
||||
const config = {
|
||||
web3provider,
|
||||
web3Provider,
|
||||
nodeUri,
|
||||
aquariusUri,
|
||||
brizoUri,
|
||||
@ -21,13 +21,7 @@ export async function provideOcean(web3provider: Web3) {
|
||||
secretStoreUri,
|
||||
verbose
|
||||
}
|
||||
|
||||
Logger.log('accs web3:', (await web3provider.eth.getAccounts())[0])
|
||||
|
||||
const ocean: any = await Ocean.getInstance(config)
|
||||
|
||||
Logger.log('accs ocean:', (await ocean.accounts.list())[0].id)
|
||||
|
||||
return { ocean }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user