solidstate-network / solidstate-solidity

💠 Upgradeable-first Solidity smart contract development library 💠
https://discord.gg/BnvwfM6bRe
MIT License
437 stars 89 forks source link

Help with Flattening Files #208

Closed jewelsonn closed 1 year ago

jewelsonn commented 1 year ago

I have a simple ERC721 Contract and

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@solidstate/contracts/token/ERC721/SolidStateERC721.sol";

contract SampleERC721 is SolidStateERC721 {
  //Contract data.....
}

The contract compiles properly except when I try to Flatten it I get this error.

Error: There is a cycle in the dependency graph, can't compute topological ordering.

I don't understand the error. I know there is a loop that causes it to trigger as a parent is also acting like a child or something like that.

Can you tell me how to I flatten it?

ItsNickBarry commented 1 year ago

Fixed in latest release.