Skip to main content
added 9 characters in body
Source Link
user19510
  • 28.1k
  • 2
  • 32
  • 49

pragma solidity ^0.4.24;

contract setget{ uint x; function setnumber(uint _x) public { x=_x; } function getnumber() public view returns(uint){ return x; } }

pragma solidity ^0.4.24;

contract setget{
    uint x;
    function setnumber(uint _x) public {
        x=_x;
    }
    function getnumber() public view returns(uint){
        return x;
    }
}

pragma solidity ^0.4.24;

contract setget{ uint x; function setnumber(uint _x) public { x=_x; } function getnumber() public view returns(uint){ return x; } }

pragma solidity ^0.4.24;

contract setget{
    uint x;
    function setnumber(uint _x) public {
        x=_x;
    }
    function getnumber() public view returns(uint){
        return x;
    }
}
deleted 2 characters in body
Source Link

`pragmapragma solidity ^0.4.24;

contract setget{ uint x; function setnumber(uint _x) public { x=_x; } function getnumber() public view returns(uint){ return x; } }`

`pragma solidity ^0.4.24;

contract setget{ uint x; function setnumber(uint _x) public { x=_x; } function getnumber() public view returns(uint){ return x; } }`

pragma solidity ^0.4.24;

contract setget{ uint x; function setnumber(uint _x) public { x=_x; } function getnumber() public view returns(uint){ return x; } }

Source Link

variable declared as uint but accepting negative values instead of throwing errors

`pragma solidity ^0.4.24;

contract setget{ uint x; function setnumber(uint _x) public { x=_x; } function getnumber() public view returns(uint){ return x; } }`