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 += `&serviceId=${serviceIndex}`
|
||||
initializeUrl += `&serviceType=${serviceType}`
|
||||
initializeUrl += `&tokenAddress=${DDO.dataToken}`
|
||||
initializeUrl += `&dataToken=${DDO.dataToken}`
|
||||
initializeUrl += `&consumerAddress=${consumerAddress}`
|
||||
|
||||
try {
|
||||
|
@ -25,11 +25,11 @@ describe('Marketplace flow', () => {
|
||||
let price
|
||||
let ocean
|
||||
let accessService
|
||||
let blob
|
||||
|
||||
const marketplaceAllowance = 20
|
||||
const tokenAmount = 100
|
||||
const transferAmount = 2
|
||||
const blob = 'http://localhost:8030/api/v1/provider/services'
|
||||
|
||||
describe('#test', () => {
|
||||
it('Initialize Ocean contracts v3', async () => {
|
||||
@ -42,12 +42,11 @@ describe('Marketplace flow', () => {
|
||||
)
|
||||
|
||||
ocean = await Ocean.getInstance(config)
|
||||
|
||||
owner = (await ocean.accounts.list())[0]
|
||||
alice = (await ocean.accounts.list())[1]
|
||||
bob = (await ocean.accounts.list())[2]
|
||||
marketplace = (await ocean.accounts.list())[3]
|
||||
|
||||
blob = ocean.config.metadataStoreUri
|
||||
await contracts.deployContracts(owner.getId())
|
||||
})
|
||||
|
||||
@ -58,8 +57,7 @@ describe('Marketplace flow', () => {
|
||||
datatokensTemplate.abi,
|
||||
web3
|
||||
)
|
||||
|
||||
tokenAddress = await datatoken.create(blob, alice.getId())
|
||||
blob = tokenAddress = await datatoken.create(blob, alice.getId())
|
||||
})
|
||||
|
||||
it('Generates metadata', async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user