1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

and some more tests

This commit is contained in:
Matthias Kretschmann 2020-09-03 12:07:18 +02:00
parent 2521866e92
commit ca5e810eb2
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 13 additions and 13 deletions

View File

@ -81,10 +81,10 @@ describe('Compute flow', () => {
)
tokenAddress = await datatoken.create(
blob,
'AliceDT',
'DTA',
alice.getId(),
'10000000000',
alice.getId()
'AliceDT',
'DTA'
)
assert(tokenAddress != null)
})

View File

@ -59,10 +59,10 @@ describe('Marketplace flow', () => {
)
tokenAddress = await datatoken.create(
blob,
'AliceDT',
'DTA',
alice.getId(),
'10000000000',
alice.getId()
'AliceDT',
'DTA'
)
assert(tokenAddress != null)
})

View File

@ -41,7 +41,7 @@ describe('Simple flow', () => {
datatokensTemplate.abi as AbiItem[],
web3
)
tokenAddress = await datatoken.create(blob, 'AliceDT', 'DTA', '10000000000', alice)
tokenAddress = await datatoken.create(blob, alice, '10000000000', 'AliceDT', 'DTA')
})
it('Alice mints 100 tokens', async () => {
await datatoken.mint(tokenAddress, alice, tokenAmount)

View File

@ -81,10 +81,10 @@ describe('FixedRateExchange flow', () => {
it('should create datatokens smart contract', async () => {
tokenAddress = await datatoken.create(
blob,
'AliceDT',
'DTA',
alice,
web3.utils.toWei('1000000000000000'),
alice
'AliceDT',
'DTA'
)
assert(tokenAddress !== null)
if (consoleDebug) console.log("Alice's address:" + alice)
@ -100,10 +100,10 @@ describe('FixedRateExchange flow', () => {
)
oceanTokenAddress = await oceandatatoken.create(
blob,
'BobDT',
'DTB',
bob,
web3.utils.toWei('1000000000000000'),
bob
'BobDT',
'DTB'
)
if (consoleDebug) console.log("Bob's address:" + bob)
if (consoleDebug) console.log('oceanTokenAddress:' + oceanTokenAddress)