Openzeppelin-contracts: Truffle not able to compile the contract despite importing the the contract and npm i open-zappline

Created on 2 Feb 2019  路  4Comments  路  Source: OpenZeppelin/openzeppelin-contracts

I have npm i "openzeppelin-solidity": "1.12.0"
still error
image

also imported it in my contract

image

Most helpful comment

Hi @pranavdaa! Please share the error that Truffle is printing.

Is the command you ran npm i "openzeppelin-solidity": "1.12.0"? If you want to use OpenZeppelin v1 you should run npm i [email protected]. However, I would strongly recommend installing OpenZeppelin v2 and using Solidity 0.4.

All 4 comments

I think contract name you are trying to inherit is named as ERC721 . Try changing it and see if it works.

Hi @pranavdaa! Please share the error that Truffle is printing.

Is the command you ran npm i "openzeppelin-solidity": "1.12.0"? If you want to use OpenZeppelin v1 you should run npm i [email protected]. However, I would strongly recommend installing OpenZeppelin v2 and using Solidity 0.4.

@frangio this worked for me thanks fot the help.

You're welcome! Also check out our forum to ask about any new problems you run into.

https://forum.zeppelin.solutions

Was this page helpful?
0 / 5 - 0 ratings