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

another createNftWithDatatokenWithDispenser test

This commit is contained in:
Matthias Kretschmann 2022-10-04 15:28:44 +01:00
parent 2176f73838
commit 8a1ce8e260
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -177,6 +177,11 @@ describe('Nft Factory test', () => {
expect(txReceipt.events.TokenCreated.event === 'TokenCreated')
expect(txReceipt.events.DispenserCreated.event === 'DispenserCreated')
// allows dispensing for everybody
const allowedSwapper = txReceipt.events.DispenserCreated.returnValues[4]
console.log(`Allowed Swapper: ${allowedSwapper}`)
assert(allowedSwapper === ZERO_ADDRESS, 'ZERO_ADDRESS is not set as allowedSwapper')
// stored for later use in startMultipleTokenOrder test
dtAddress2 = txReceipt.events.TokenCreated.returnValues.newTokenAddress
})