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

Support ever-solidity pragma #35

Open
defi-pickle opened this issue Jul 24, 2023 · 1 comment
Open

Support ever-solidity pragma #35

defi-pickle opened this issue Jul 24, 2023 · 1 comment

Comments

@defi-pickle
Copy link

Running extension build 1.4.39 with locklift@2.6.0 and ton solidity compiler version 0.62.0

this sniptes returns error Error: Error: Source file requires different compiler version (current compiler is 0.62.0+commit.e66e9ac9.Darwin.appleclang)

pragma ever-solidity >= 0.61.2;
pragma AbiHeader expire;
pragma AbiHeader pubkey;
// this is enabled by default
pragma AbiHeader time;

import '@broxus/tip4/contracts/TIP4_1/TIP4_1Nft.tsol';


contract Nft is TIP4_1Nft {

    constructor(
        address owner,
        address sendGasTo,
        uint128 remainOnNft
    ) TIP4_1Nft(
        owner,
        sendGasTo,
        remainOnNft
    ) public {}
}

I guess we need to support ever-solidity right as well as ton-solidity right?

@pizza-777
Copy link
Owner

Look at the IP4_1Nft.tsol import file. It has pragma ever-solidity ^0.61.2;
^0.61.2; means the file does not compile with a compiler earlier than version 0.61.2, and it also does not work on a compiler starting from version 0.62.0

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

2 participants