ngduc / flatten-sol

command-line tool to flatten a solidity contract which uses `import "@openzeppelin/contracts/...`.
MIT License
12 stars 3 forks source link

Didn' Recieve a Flat Solidity File. Found this instead. #4

Open zaryab2000 opened 2 years ago

zaryab2000 commented 2 years ago

Followed the installation guide and ran the command:

npx flatten-sol contracts/myNFT.sol

However, I got this as an output:

{"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":40,"msg":"!!! contracts/token/ERC721/ERC721.sol SOURCE FILE WAS NOT FOUND. I'M TRYING TO FIND IT RECURSIVELY !!!","time":"2022-02-11T06:44:02.647Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":30,"msg":"contracts/token/ERC721/ERC721.sol SOURCE FILE WAS FOUND","time":"2022-02-11T06:44:02.647Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":40,"msg":"!!! contracts/token/ERC721/extensions/ERC721Enumerable.sol SOURCE FILE WAS NOT FOUND. I'M TRYING TO FIND IT RECURSIVELY !!!","time":"2022-02-11T06:44:02.647Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":30,"msg":"contracts/token/ERC721/extensions/ERC721Enumerable.sol SOURCE FILE WAS FOUND","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":40,"msg":"!!! contracts/token/ERC721/extensions/ERC721URIStorage.sol SOURCE FILE WAS NOT FOUND. I'M TRYING TO FIND IT RECURSIVELY !!!","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":30,"msg":"contracts/token/ERC721/extensions/ERC721URIStorage.sol SOURCE FILE WAS FOUND","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":40,"msg":"!!! contracts/access/Ownable.sol SOURCE FILE WAS NOT FOUND. I'M TRYING TO FIND IT RECURSIVELY !!!","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":30,"msg":"contracts/access/Ownable.sol SOURCE FILE WAS FOUND","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":40,"msg":"!!! contracts/utils/math/SafeMath.sol SOURCE FILE WAS NOT FOUND. I'M TRYING TO FIND IT RECURSIVELY !!!","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":30,"msg":"contracts/utils/math/SafeMath.sol SOURCE FILE WAS FOUND","time":"2022-02-11T06:44:02.648Z","v":0} {"name":"solidity-flattener","hostname":"Zaryabs-World.local","pid":7734,"level":30,"msg":"Success! Flat file LionNFT_flat.sol is generated to ./out directory","time":"2022-02-11T06:44:02.651Z","v":0}

Would like to know if its not working at all or is there something that I am doing wrong.

joao-neves95 commented 2 years ago

@zaryab2000 , could you install the previous version v0.1.1 and tell me what you see?