Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "{path}.sol must be an object" while compiling ERC-721 standard #31

Open
Dziubutkus opened this issue Jan 14, 2019 · 0 comments
Open

Comments

@Dziubutkus
Copy link

I am getting an error when compiling the contract.

clevis compile ContractName

ContractName inherits ERC721Full.
I listed every dependency in dependencies.js

'openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol', 'utf8'),
  'openzeppelin-solidity/contracts/math/SafeMath.sol': fs.readFileSync('openzeppelin-solidity/contracts/math/SafeMath.sol', 'utf8'),
  'openzeppelin-solidity/contracts/utils/Address.sol': fs.readFileSync('openzeppelin-solidity/contracts/utils/Address.sol', 'utf8'),
  'openzeppelin-solidity/contracts/introspection/IERC165.sol': fs.readFileSync('openzeppelin-solidity/contracts/introspection/IERC165.sol', 'utf8'),
  'openzeppelin-solidity/contracts/introspection/ERC165.sol': fs.readFileSync('openzeppelin-solidity/contracts/introspection/ERC165.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/ERC721.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/ERC721.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/IERC721.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/IERC721.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/ERC721Enumerable.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/ERC721Enumerable.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/IERC721Metadata.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/IERC721Metadata.sol', 'utf8'),
  'openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol': fs.readFileSync('openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol', 'utf8'),

Error

ERROR compiling! undefined                                                                                │
{ errors:                                                                                                 │
   [ { component: 'general',                                                                              │
       formattedMessage: '"sources.openzeppelin-solidity/contracts/introspection/ERC165.sol" must be an ob│
ject',                                                                                                    │
       message: '"sources.openzeppelin-solidity/contracts/introspection/ERC165.sol" must be an object',   │
       severity: 'error',                                                                                 │
       type: 'JSONError' } ] }                                                                            │
@Dziubutkus Dziubutkus changed the title Error: "{path}.sol must be an object" Error: "{path}.sol must be an object" while compiling ERC-721 standard Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant