rwaltzsoftware-org / coffee-supplychain-ethereum

Implementation of coffee supplychain using ethereum smart contract addressing the issue of storing critical data necessary at different stages of supplychain and making it verifiable by all stakeholders in supplychain.
127 stars 81 forks source link

getting these errors on truffle compile #8

Closed madhavblockchain closed 6 years ago

madhavblockchain commented 6 years ago

Compilation warnings encountered:

/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:138:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getUserRole(address _userAddress) public onlyAuthCaller view returns(string) ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:144:53: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getNextAction(address _batchNo) public onlyAuthCaller view returns(string) ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:171:51: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getUser(address _userAddress) public onlyAuthCaller view returns(string name, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:185:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getBasicDetails(address _batchNo) public onlyAuthCaller view returns(string registrationNo, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:240:59: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){ ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:264:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getHarvesterData(address batchNo) public onlyAuthCaller view returns(string cropVariety, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:297:54: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getExporterData(address batchNo) public onlyAuthCaller view returns(uint256 quantity, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:348:54: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getImporterData(address batchNo) public onlyAuthCaller view returns(uint256 quantity, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:400:56: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getProcessorData( address batchNo) public onlyAuthCaller view returns( ^------------^

madhavblockchain commented 6 years ago

working fine now ,executed truffle migrate --reset