mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix more datatokens related tests
This commit is contained in:
parent
418305c0f1
commit
9cb6ea3dbe
@ -10,6 +10,7 @@ import factory from '@oceanprotocol/contracts/artifacts/DTFactory.json'
|
||||
import datatokensTemplate from '@oceanprotocol/contracts/artifacts/DataTokenTemplate.json'
|
||||
import { Account, DDO, Metadata } from '../../src/lib'
|
||||
import { Cluster, Container, Server } from '../../src/ocean/Compute'
|
||||
import { LoggerInstance } from '../../src/utils'
|
||||
const web3 = new Web3('http://127.0.0.1:8545')
|
||||
|
||||
function sleep(ms: number) {
|
||||
@ -87,7 +88,8 @@ describe('Compute flow', () => {
|
||||
contracts.factoryAddress,
|
||||
factory.abi as AbiItem[],
|
||||
datatokensTemplate.abi as AbiItem[],
|
||||
web3
|
||||
web3,
|
||||
LoggerInstance
|
||||
)
|
||||
tokenAddress = await datatoken.create(
|
||||
blob,
|
||||
|
@ -9,6 +9,7 @@ import { Account, EditableMetadata, Service, ServiceAccess } from '../../src/lib
|
||||
import { Ocean } from '../../src/ocean/Ocean'
|
||||
import { ConfigHelper } from '../../src/utils/ConfigHelper'
|
||||
import { TestContractHandler } from '../TestContractHandler'
|
||||
import { LoggerInstance } from '../../src/utils'
|
||||
|
||||
const web3 = new Web3('http://127.0.0.1:8545')
|
||||
|
||||
@ -65,7 +66,8 @@ describe('Marketplace flow', () => {
|
||||
contracts.factoryAddress,
|
||||
factory.abi as AbiItem[],
|
||||
datatokensTemplate.abi as AbiItem[],
|
||||
web3
|
||||
web3,
|
||||
LoggerInstance
|
||||
)
|
||||
tokenAddress = await datatoken.create(
|
||||
blob,
|
||||
|
@ -5,6 +5,7 @@ import { AbiItem } from 'web3-utils/types'
|
||||
import Web3 from 'web3'
|
||||
import factory from '@oceanprotocol/contracts/artifacts/DTFactory.json'
|
||||
import datatokensTemplate from '@oceanprotocol/contracts/artifacts/DataTokenTemplate.json'
|
||||
import { LoggerInstance } from '../../src/utils'
|
||||
const web3 = new Web3('http://127.0.0.1:8545')
|
||||
|
||||
describe('Simple flow', () => {
|
||||
@ -40,7 +41,8 @@ describe('Simple flow', () => {
|
||||
contracts.factoryAddress,
|
||||
factory.abi as AbiItem[],
|
||||
datatokensTemplate.abi as AbiItem[],
|
||||
web3
|
||||
web3,
|
||||
LoggerInstance
|
||||
)
|
||||
tokenAddress = await datatoken.create(blob, alice, '10000000000', 'AliceDT', 'DTA')
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user