mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
more tests
This commit is contained in:
parent
670db86195
commit
192144271a
@ -176,10 +176,17 @@ describe('Nft Factory test', () => {
|
||||
expect(txReceipt.events.NFTCreated.event === 'NFTCreated')
|
||||
expect(txReceipt.events.TokenCreated.event === 'TokenCreated')
|
||||
expect(txReceipt.events.DispenserCreated.event === 'DispenserCreated')
|
||||
expect(
|
||||
txReceipt.events.DispenserAllowedSwapperChanged.event ===
|
||||
'DispenserAllowedSwapperChanged'
|
||||
)
|
||||
|
||||
// allows dispensing for everybody
|
||||
console.log(`DispenserCreated: ${JSON.stringify(txReceipt.events.DispenserCreated)}`)
|
||||
console.log(
|
||||
`DispenserCreated: ${txReceipt.events.DispenserCreated.returnValues.toString()}`
|
||||
`DispenserAllowedSwapperChanged: ${JSON.stringify(
|
||||
txReceipt.events.DispenserAllowedSwapperChanged
|
||||
)}`
|
||||
)
|
||||
const allowedSwapper = txReceipt.events.DispenserCreated.returnValues[4]
|
||||
console.log(`Allowed Swapper: ${allowedSwapper}`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user