I am trying to run below code, but I receive this error
"Gas requirement of function Team3_SE427_Call.increaseCount is infinite: If the gas requirement of a function is higher than the block gas limit, it cannot be executed. Please avoid loops in your functions or actions that modify large areas of storage (this includes clearing or copying arrays in storage) Pos: 11:4:"
Here my code;
pragma solidity ^0.5.17;
contract Team3_SE427_Call{
address payable constant CONTRACT_ADDRESS = 0x600cA6ef0678a82ac4ccbcd4BBc4b284D413C8a9;
constructor() public payable {
}
function increaseCount() public payable {
Team_SE427_Contract x = Team_SE427_Contract(CONTRACT_ADDRESS);
int count = x.getCount.value(0.1 ether)();
x.IncreaseCount.value(0.5 ether)(count);
}
}
contract Team_SE427_Contract{
function IncreaseCount(int predict) public payable;
function getCount() public payable returns(int);
}
How can I fix the problem?