kleros/kleros-interaction

Cycle in the dependency graph - order of the files when deploying via Remix

Closed this issue · 1 comments

I would like to use https://www.npmjs.com/package/truffle-flattener so that I can have a single file .sol and deploy in Remix.

I'm encountering an issue:

truffle-flattener contracts/standard/permission/ArbitrableTokenList.sol
Error: There is a cycle in the dependency graph, can't compute topological ordering. Files:
	contracts/standard/permission/ArbitrableTokenList.sol
	/Users/mars/Code/kleros-interaction/contracts/standard/arbitration/Arbitrable.sol
	/Users/mars/Code/kleros-interaction/contracts/standard/arbitration/IArbitrable.sol
	/Users/mars/Code/kleros-interaction/contracts/standard/arbitration/Arbitrator.sol
	/Users/mars/Code/kleros-interaction/contracts/standard/permission/PermissionInterface.sol
	/Users/mars/Code/kleros-interaction/contracts/libraries/CappedMath.sol
    at getSortedFilePaths (/Users/mars/.nvm/versions/node/v11.6.0/lib/node_modules/truffle-flattener/index.js:95:13)

Does it seem like there is a circular dependency? Looking at the deployed Etherscan code - https://etherscan.io/address/0xebcf3bca271b26ae4b162ba560e243055af0e679#code - it seems like it is working OK... What's the secret?