limit x 0 100
This commit is contained in:
@@ -151,6 +151,7 @@ contract CrowdPoolingFactory is Ownable {
|
|||||||
|
|
||||||
// ============ Owner Functions ============
|
// ============ Owner Functions ============
|
||||||
function setXY(uint256 x,uint256 y) public onlyOwner {
|
function setXY(uint256 x,uint256 y) public onlyOwner {
|
||||||
|
require(x>0&&x<=100,"between 0,100");
|
||||||
_X_=x;
|
_X_=x;
|
||||||
_Y_=y;
|
_Y_=y;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user