Skip to main content
2 of 3
deleted 2 characters in body

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; } }