Flatten an ERC721

What’s up guys im brazilian so if you cant understand pls have patience with me

So, the problem is what im cant use the truffle-flattner to my contract, im begginer on npm and solidity, and im need assistence to do this, i can do without truffle-flattner?

1 Like

Hey, welcome!

I think the basic way is to do it manually, that is you can copy the import file into your contracts one by one.

And what was the error message when you ran truffle-flattener <solidity-files>?

1 Like

Hi @Lucas_Borges,

Welcome to the community :wave:

I recommend trying out the new OpenZeppelin Contracts Wizard:

(node:14296) Warning: Accessing non-existent property ‘INVALID_ALT_NUMBER’ of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:14296) Warning: Accessing non-existent property ‘INVALID_ALT_NUMBER’ of module exports inside circular dependency
Error: None of the sub-resolvers resolved “nft\node_modules@openzeppelin\contracts\token\ERC721\ERC721.sol” location.
at ResolverEngine. (C:\Users\Lucas Borges\repository\nft\node_modules@resolver-engine\core\build\src\resolverengine.js:35:23)
at Generator.next ()
at fulfilled (C:\Users\Lucas Borges\repository\nft\node_modules@resolver-engine\core\build\src\resolverengine.js:4:58)
This is the error