const Dex = artifacts.require("Dex")
const Link = artifacts.require("Link")
const truffleAssert = require('truffle-assertions');
contract("Dex", accounts => {
it("should only be possible for owner to add tokens", async () => {
let dex = await Dex.deployed();
let link = await Link.deployed();
await truffleAssert.passes(
dex.addToken(web3.utils.fromUtf8("LINK"), link.address, { from: accounts[0] })
)
})
})```
Transaction: 0x4d17a098645c5756de7e15580f517b4843729e1111c470c1166ef66bf212274d exited with an error (status 0).
Please check that the transaction:
- satisfies all conditions set by Solidity `require` statements.
- does not trigger a Solidity `revert` statement.
[Code LInk Github](https://github.com/mubashirhussainkhadim/solidty)