mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix initialize
This commit is contained in:
parent
f9c5b7bd49
commit
eb1966b769
@ -82,7 +82,7 @@ export class Provider extends Instantiable {
|
|||||||
initializeUrl += `?documentId=${did}`
|
initializeUrl += `?documentId=${did}`
|
||||||
initializeUrl += `&serviceId=${serviceIndex}`
|
initializeUrl += `&serviceId=${serviceIndex}`
|
||||||
initializeUrl += `&serviceType=${serviceType}`
|
initializeUrl += `&serviceType=${serviceType}`
|
||||||
initializeUrl += `&tokenAddress=${DDO.dataToken}`
|
initializeUrl += `&dataToken=${DDO.dataToken}`
|
||||||
initializeUrl += `&consumerAddress=${consumerAddress}`
|
initializeUrl += `&consumerAddress=${consumerAddress}`
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -25,11 +25,11 @@ describe('Marketplace flow', () => {
|
|||||||
let price
|
let price
|
||||||
let ocean
|
let ocean
|
||||||
let accessService
|
let accessService
|
||||||
|
let blob
|
||||||
|
|
||||||
const marketplaceAllowance = 20
|
const marketplaceAllowance = 20
|
||||||
const tokenAmount = 100
|
const tokenAmount = 100
|
||||||
const transferAmount = 2
|
const transferAmount = 2
|
||||||
const blob = 'http://localhost:8030/api/v1/provider/services'
|
|
||||||
|
|
||||||
describe('#test', () => {
|
describe('#test', () => {
|
||||||
it('Initialize Ocean contracts v3', async () => {
|
it('Initialize Ocean contracts v3', async () => {
|
||||||
@ -42,12 +42,11 @@ describe('Marketplace flow', () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
ocean = await Ocean.getInstance(config)
|
ocean = await Ocean.getInstance(config)
|
||||||
|
|
||||||
owner = (await ocean.accounts.list())[0]
|
owner = (await ocean.accounts.list())[0]
|
||||||
alice = (await ocean.accounts.list())[1]
|
alice = (await ocean.accounts.list())[1]
|
||||||
bob = (await ocean.accounts.list())[2]
|
bob = (await ocean.accounts.list())[2]
|
||||||
marketplace = (await ocean.accounts.list())[3]
|
marketplace = (await ocean.accounts.list())[3]
|
||||||
|
blob = ocean.config.metadataStoreUri
|
||||||
await contracts.deployContracts(owner.getId())
|
await contracts.deployContracts(owner.getId())
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -58,8 +57,7 @@ describe('Marketplace flow', () => {
|
|||||||
datatokensTemplate.abi,
|
datatokensTemplate.abi,
|
||||||
web3
|
web3
|
||||||
)
|
)
|
||||||
|
blob = tokenAddress = await datatoken.create(blob, alice.getId())
|
||||||
tokenAddress = await datatoken.create(blob, alice.getId())
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Generates metadata', async () => {
|
it('Generates metadata', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user