This is my code
pragma solidity ^0.4.19;
contract FirstContract
{
address creator;
uint256 priceOfATransaction = msg.value;
uint256 totalAmount;
address buyer;
function FirstContract() public
{
creator = msg.sender;
}
function perSaleDetails() public
{
totalAmount += priceOfATransaction;
//=========Detail of an order==========//
priceOfATransaction = 0;
}
function sellerMoneey() public returns(bool)
{
if(msg.sender == creator){
if(!creator.send(totalAmount)) {
return false;
}
}
}
}
REMIX WARNING:-
Gas requirement of function FirstContract.sellerMoneey() high: 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)
What do I need to modify