I am trying to run a function with Remix web compiler on a contract in my private chain. Here is my contract and I am trying to run the function changeVaccinHistory:
contract PatientObjects {
struct patientDetails{
bytes32 firstName;
bytes32 lastName;
bytes32 dob;
uint height;
uint weight;
}
patientDetails details;
address lastMSSeen;
address vaccinsHistory;
function PatientObjects (bytes32 firstName, bytes32 lastName, uint height, uint weight, bytes32 dob ,address lastMSseen, address vaccinHistory){
details.firstName = firstName;
details.lastName = lastName;
details.height = height;
details.weight = weight;
details.dob = dob;
lastMSSeen = lastMSseen;
vaccinsHistory = vaccinHistory;
}
function changeVaccinHistory(address newAddress) returns(address){
vaccinsHistory = newAddress;
return vaccinsHistory;
}
function changeHeight(uint newHeight) returns (uint){
details.height = newHeight;
return details.height;
}
function changeWeight(uint newWeight) returns (uint){
details.weight = newWeight;
return details.weight;
}
function getDetails() public constant returns (bytes32, bytes32, uint, uint, bytes32, address, address){
return (details.firstName, details.lastName, details.height, details.weight, details.dob, lastMSSeen, vaccinsHistory);
}
}
Unforutnaly i get the error: callback contain no result Gas required exceeds limit: 4707786
I don't understand what this error means and what can i do to avoid it.