Skip to content

Missing "pragma ever-solidity ^0.61.2" for interfaces #24

Description

@quentin-abei

step to reproduce :
install npm packages "npm i --save-dev @itgold/everscale-tip"
create newNft contract and Collection contracts by following this guide :
"https://docs.venom.foundation/build/development-guides/how-to-create-your-own-non-fungible-tip-4-token/quick-start-developing-with-tip-4".
now compile your contracts npx locklift build :
Output
[ERROR] path: /home/orca/Hoopoes-contracts/contracts/Collection.sol, contractFile: contracts/Collection error: Warning: Source file does not specify required compiler version! Consider adding "pragma ever-solidity ^0.61.2;"
--> /home/orca/Hoopoes-contracts/node_modules/@itgold/everscale-tip/contracts/TIP4_1/interfaces/INftChangeOwner.sol

Warning: Source file does not specify required compiler version! Consider adding "pragma ever-solidity ^0.61.2;"
--> /home/orca/Hoopoes-contracts/node_modules/@itgold/everscale-tip/contracts/TIP4_1/interfaces/INftTransfer.sol

Error: Wrong argument count for function call: 3 arguments given but expected 7.
--> /home/orca/Hoopoes-contracts/contracts/Collection.sol:33:9:
|
33 | new Nft{
| ^ (Relevant source part starts here and spans across multiple lines).

there is a missing header for interfaces so the compiler complain both in the npm package and in this github repo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions