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

truffle compile failed #5

Open
nkbai opened this issue Nov 17, 2018 · 0 comments
Open

truffle compile failed #5

nkbai opened this issue Nov 17, 2018 · 0 comments

Comments

@nkbai
Copy link

nkbai commented Nov 17, 2018

I have tried solc version 0.4.24 and 0.5.0.

the following errors:

Compiling ./contracts/Bits.sol...
Compiling ./contracts/BuyoutsProcessor.sol...
Compiling ./contracts/ByteSlice.sol...
Compiling ./contracts/Conversion.sol...
Compiling ./contracts/LimboExitGame.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/PlasmaBlockStorage.sol...
Compiling ./contracts/PlasmaChallenges.sol...
Compiling ./contracts/PlasmaParent.sol...
Compiling ./contracts/PlasmaTransactionLibrary.sol...
Compiling ./contracts/PriorityQueue.sol...
Compiling ./contracts/RLP.sol...
Compiling ./contracts/SafeMath.sol...
Compiling ./contracts/Structures.sol...
Compiling ./contracts/TXTester.sol...

Compilation warnings encountered:

/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:410:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:410:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:411:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jumpi(end, eq(i, words))
                ^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:417:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jump(tag_loop)
                ^------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:418:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:418:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:255:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:255:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:256:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jumpi(end, gt(i, words))
                ^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:262:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jump(tag_loop)
                ^------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:263:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:263:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaParent.sol:382:9: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead.
        beneficiary.send(toSend);
        ^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaParent.sol:404:13: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead.
            beneficiary.send(amount);
            ^----------------------^


/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/Bits.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:10:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/Conversion.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaTransactionLibrary.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaBlockStorage.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/SafeMath.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PriorityQueue.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/Structures.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/BuyoutsProcessor.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/LimboExitGame.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/Migrations.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaChallenges.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaParent.sol:6:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/TXTester.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.25;
^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:410:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:410:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:411:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jumpi(end, eq(i, words))
                ^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:417:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jump(tag_loop)
                ^------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:418:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/RLP.sol:418:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:255:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:255:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            tag_loop:
            ^------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:256:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jumpi(end, gt(i, words))
                ^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:262:17: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                jump(tag_loop)
                ^------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:263:13: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/ByteSlice.sol:263:13: Warning: Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
            end:
            ^-^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaParent.sol:382:9: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead.
        beneficiary.send(toSend);
        ^----------------------^
,/Volumes/dev/godev/src/github.com/SmartMeshFoundation/SmartPlasma/PlasmaContract/contracts/PlasmaParent.sol:404:13: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead.
            beneficiary.send(amount);
            ^----------------------^
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