pizza-777 / everscale-solidity-vscode-extension

VSCode extension for Solidity language for developing smart contracts on TVM-compatible blockchains.
Apache License 2.0
9 stars 0 forks source link

Support ever-solidity pragma #35

Open defi-pickle opened 1 year ago

defi-pickle commented 1 year ago

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 commented 1 year ago

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