You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default example gives errors when compiling on remix.ethereum.org
When using compiler version 0.4.19+commit.c4cbbb05 it givers error:
browser/ballot.sol:78:16: ParserError: Expected identifier, got 'LParen'
constructor() public {
^
When using compiler version 0.5.1+commit.c8a2cb62 I get:
browser/ballot.sol:46:35: ParserError: The state mutability modifier "constant" was removed in version 0.5.0. Use "view" or "pure" instead.
function totalSupply() public constant returns (uint);
^------^
And if you replace all references from "constant" to "view" (still with compiler version 0.5.1+commit.c8a2cb62) I get:
browser/ballot.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.5.1+commit.c8a2cb62.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity ^0.4.24;
And
browser/ballot.sol:64:75: TypeError: Data location must be "memory" for parameter in function, but none was given.
function receiveApproval(address from, uint256 tokens, address token, bytes data) public;
^--------^
And If I change it to the latest non nightly build version of "0.5.3+commit.10d17f24" I get:
browser/ballot.sol:21:1: ParserError: Source file requires different compiler version (current compiler is 0.5.3+commit.10d17f24.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
contract SafeMath {
^------^
The text was updated successfully, but these errors were encountered:
The default example gives errors when compiling on remix.ethereum.org
When using compiler version 0.4.19+commit.c4cbbb05 it givers error:
When using compiler version
0.5.1+commit.c8a2cb62
I get:And if you replace all references from "constant" to "view" (still with compiler version 0.5.1+commit.c8a2cb62) I get:
And
And If I change it to the latest non nightly build version of "0.5.3+commit.10d17f24" I get:
The text was updated successfully, but these errors were encountered: