mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix tests lint
This commit is contained in:
parent
24c8a87623
commit
8193838a96
@ -51,7 +51,11 @@ export class Assets extends Instantiable {
|
|||||||
* @param {Account} publisher Publisher account.
|
* @param {Account} publisher Publisher account.
|
||||||
* @return {Promise<String>}
|
* @return {Promise<String>}
|
||||||
*/
|
*/
|
||||||
public createSimpleAsset(datatoken: DataTokens, publisher: Account, blob: string): Promise<string> {
|
public createSimpleAsset(
|
||||||
|
datatoken: DataTokens,
|
||||||
|
publisher: Account,
|
||||||
|
blob: string
|
||||||
|
): Promise<string> {
|
||||||
const publisherURI = this.ocean.brizo.getURI()
|
const publisherURI = this.ocean.brizo.getURI()
|
||||||
// const jsonBlob = { t: 0, url: publisherURI }
|
// const jsonBlob = { t: 0, url: publisherURI }
|
||||||
return datatoken.create(JSON.stringify(blob), publisher)
|
return datatoken.create(JSON.stringify(blob), publisher)
|
||||||
|
@ -45,7 +45,7 @@ describe('Marketplace flow', () => {
|
|||||||
datatokensTemplate.abi,
|
datatokensTemplate.abi,
|
||||||
web3
|
web3
|
||||||
)
|
)
|
||||||
|
|
||||||
const config = new Config()
|
const config = new Config()
|
||||||
const ocean = await Ocean.getInstance(config)
|
const ocean = await Ocean.getInstance(config)
|
||||||
|
|
||||||
@ -67,4 +67,4 @@ describe('Marketplace flow', () => {
|
|||||||
await ocean.assets.download(ddo, blob, transactionId, bob)
|
await ocean.assets.download(ddo, blob, transactionId, bob)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -15,7 +15,6 @@ describe('Rinkeby test', () => {
|
|||||||
const tokenAmount = 100
|
const tokenAmount = 100
|
||||||
const blob = 'http://localhost:8030/api/v1/provider/services'
|
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 () => {
|
||||||
contracts = new TestContractHandler(
|
contracts = new TestContractHandler(
|
||||||
@ -25,7 +24,7 @@ describe('Rinkeby test', () => {
|
|||||||
factory.bytecode,
|
factory.bytecode,
|
||||||
web3
|
web3
|
||||||
)
|
)
|
||||||
|
|
||||||
const privateKey = 'PRIVATE_KEY'
|
const privateKey = 'PRIVATE_KEY'
|
||||||
account = web3.eth.accounts.privateKeyToAccount('0x' + privateKey)
|
account = web3.eth.accounts.privateKeyToAccount('0x' + privateKey)
|
||||||
web3.eth.accounts.wallet.add(account)
|
web3.eth.accounts.wallet.add(account)
|
||||||
@ -48,4 +47,4 @@ describe('Rinkeby test', () => {
|
|||||||
await datatoken.mint(tokenAddress, account.address, tokenAmount)
|
await datatoken.mint(tokenAddress, account.address, tokenAmount)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -24,7 +24,8 @@ describe('DataTokens', () => {
|
|||||||
factory.abi,
|
factory.abi,
|
||||||
datatokensTemplate.abi,
|
datatokensTemplate.abi,
|
||||||
datatokensTemplate.bytecode,
|
datatokensTemplate.bytecode,
|
||||||
factory.bytecode
|
factory.bytecode,
|
||||||
|
web3
|
||||||
)
|
)
|
||||||
await contracts.getAccounts()
|
await contracts.getAccounts()
|
||||||
minter = contracts.accounts[0]
|
minter = contracts.accounts[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user