You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running 'truffle migrate', the TypeError: Data Location for function parameter must be memory, but none was given - Is thrown for many variables defined in the contract.
project:/contracts/SupplyChainStorage.sol:138:83: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getUserRole(address _userAddress) public onlyAuthCaller view returns(string)
^----^
,project:/contracts/SupplyChainStorage.sol:144:81: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getNextAction(address _batchNo) public onlyAuthCaller view returns(string)
^----^
,project:/contracts/SupplyChainStorage.sol:151:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _name,
^----------^
,project:/contracts/SupplyChainStorage.sol:152:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _contactNo,
^---------------^
,project:/contracts/SupplyChainStorage.sol:153:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _role,
^----------^
,project:/contracts/SupplyChainStorage.sol:155:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _profileHash) public onlyAuthCaller returns(bool){
^-----------------^
,project:/contracts/SupplyChainStorage.sol:171:79: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getUser(address _userAddress) public onlyAuthCaller view returns(string name,
^---------^
,project:/contracts/SupplyChainStorage.sol:172:69: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string contactNo,
^--------------^
,project:/contracts/SupplyChainStorage.sol:173:69: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string role,
^---------^
,project:/contracts/SupplyChainStorage.sol:175:69: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string profileHash
^----------------^
,project:/contracts/SupplyChainStorage.sol:185:83: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getBasicDetails(address _batchNo) public onlyAuthCaller view returns(string registrationNo,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:186:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string farmerName,
^---------------^
,project:/contracts/SupplyChainStorage.sol:187:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string farmAddress,
^----------------^
,project:/contracts/SupplyChainStorage.sol:188:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string exporterName,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:189:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string importerName) {
^-----------------^
,project:/contracts/SupplyChainStorage.sol:197:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
function setBasicDetails(string _registrationNo,
^--------------------^
,project:/contracts/SupplyChainStorage.sol:198:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _farmerName,
^----------------^
,project:/contracts/SupplyChainStorage.sol:199:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _farmAddress,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:200:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _exporterName,
^------------------^
,project:/contracts/SupplyChainStorage.sol:201:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _importerName
^------------------^
,project:/contracts/SupplyChainStorage.sol:224:37: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _coffeeFamily,
^------------------^
,project:/contracts/SupplyChainStorage.sol:225:37: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _typeOfSeed,
^----------------^
,project:/contracts/SupplyChainStorage.sol:226:37: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _fertilizerUsed) public onlyAuthCaller returns(bool){
^--------------------^
,project:/contracts/SupplyChainStorage.sol:240:88: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^-----------------^
,project:/contracts/SupplyChainStorage.sol:240:108: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^---------------^
,project:/contracts/SupplyChainStorage.sol:240:126: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^-------------------^
,project:/contracts/SupplyChainStorage.sol:249:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _cropVariety,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:250:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _temperatureUsed,
^---------------------^
,project:/contracts/SupplyChainStorage.sol:251:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _humidity) public onlyAuthCaller returns(bool){
^--------------^
,project:/contracts/SupplyChainStorage.sol:264:83: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getHarvesterData(address batchNo) public onlyAuthCaller view returns(string cropVariety,
^----------------^
,project:/contracts/SupplyChainStorage.sol:265:92: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string temperatureUsed,
^--------------------^
,project:/contracts/SupplyChainStorage.sol:266:92: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string humidity){
^-------------^
,project:/contracts/SupplyChainStorage.sol:275:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _destinationAddress,
^------------------------^
,project:/contracts/SupplyChainStorage.sol:276:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipName,
^--------------^
,project:/contracts/SupplyChainStorage.sol:277:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipNo,
^------------^
,project:/contracts/SupplyChainStorage.sol:298:65: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string destinationAddress,
^-----------------------^
,project:/contracts/SupplyChainStorage.sol:299:65: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipName,
^-------------^
,project:/contracts/SupplyChainStorage.sol:300:65: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipNo,
^-----------^
,project:/contracts/SupplyChainStorage.sol:324:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipName,
^--------------^
,project:/contracts/SupplyChainStorage.sol:325:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipNo,
^------------^
,project:/contracts/SupplyChainStorage.sol:326:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _transportInfo,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:327:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _warehouseName,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:328:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _warehouseAddress,
^----------------------^
,project:/contracts/SupplyChainStorage.sol:349:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipName,
^-------------^
,project:/contracts/SupplyChainStorage.sol:350:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipNo,
^-----------^
,project:/contracts/SupplyChainStorage.sol:352:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string transportInfo,
^------------------^
,project:/contracts/SupplyChainStorage.sol:353:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string warehouseName,
^------------------^
,project:/contracts/SupplyChainStorage.sol:354:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string warehouseAddress,
^---------------------^
,project:/contracts/SupplyChainStorage.sol:375:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _temperature,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:377:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _internalBatchNo,
^---------------------^
,project:/contracts/SupplyChainStorage.sol:379:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _processorName,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:380:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _processorAddress) public onlyAuthCaller returns(bool){
^----------------------^
,project:/contracts/SupplyChainStorage.sol:402:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string temperature,
^----------------^
,project:/contracts/SupplyChainStorage.sol:404:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string internalBatchNo,
^--------------------^
,project:/contracts/SupplyChainStorage.sol:406:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string processorName,
^------------------^
,project:/contracts/SupplyChainStorage.sol:407:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string processorAddress){
^---------------------^
The text was updated successfully, but these errors were encountered:
After running 'truffle migrate', the TypeError: Data Location for function parameter must be memory, but none was given - Is thrown for many variables defined in the contract.
project:/contracts/SupplyChainStorage.sol:138:83: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getUserRole(address _userAddress) public onlyAuthCaller view returns(string)
^----^
,project:/contracts/SupplyChainStorage.sol:144:81: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getNextAction(address _batchNo) public onlyAuthCaller view returns(string)
^----^
,project:/contracts/SupplyChainStorage.sol:151:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _name,
^----------^
,project:/contracts/SupplyChainStorage.sol:152:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _contactNo,
^---------------^
,project:/contracts/SupplyChainStorage.sol:153:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _role,
^----------^
,project:/contracts/SupplyChainStorage.sol:155:22: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _profileHash) public onlyAuthCaller returns(bool){
^-----------------^
,project:/contracts/SupplyChainStorage.sol:171:79: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getUser(address _userAddress) public onlyAuthCaller view returns(string name,
^---------^
,project:/contracts/SupplyChainStorage.sol:172:69: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string contactNo,
^--------------^
,project:/contracts/SupplyChainStorage.sol:173:69: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string role,
^---------^
,project:/contracts/SupplyChainStorage.sol:175:69: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string profileHash
^----------------^
,project:/contracts/SupplyChainStorage.sol:185:83: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getBasicDetails(address _batchNo) public onlyAuthCaller view returns(string registrationNo,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:186:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string farmerName,
^---------------^
,project:/contracts/SupplyChainStorage.sol:187:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string farmAddress,
^----------------^
,project:/contracts/SupplyChainStorage.sol:188:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string exporterName,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:189:30: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string importerName) {
^-----------------^
,project:/contracts/SupplyChainStorage.sol:197:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
function setBasicDetails(string _registrationNo,
^--------------------^
,project:/contracts/SupplyChainStorage.sol:198:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _farmerName,
^----------------^
,project:/contracts/SupplyChainStorage.sol:199:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _farmAddress,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:200:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _exporterName,
^------------------^
,project:/contracts/SupplyChainStorage.sol:201:30: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _importerName
^------------------^
,project:/contracts/SupplyChainStorage.sol:224:37: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _coffeeFamily,
^------------------^
,project:/contracts/SupplyChainStorage.sol:225:37: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _typeOfSeed,
^----------------^
,project:/contracts/SupplyChainStorage.sol:226:37: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _fertilizerUsed) public onlyAuthCaller returns(bool){
^--------------------^
,project:/contracts/SupplyChainStorage.sol:240:88: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^-----------------^
,project:/contracts/SupplyChainStorage.sol:240:108: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^---------------^
,project:/contracts/SupplyChainStorage.sol:240:126: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^-------------------^
,project:/contracts/SupplyChainStorage.sol:249:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _cropVariety,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:250:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _temperatureUsed,
^---------------------^
,project:/contracts/SupplyChainStorage.sol:251:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _humidity) public onlyAuthCaller returns(bool){
^--------------^
,project:/contracts/SupplyChainStorage.sol:264:83: TypeError: Data location must be "memory" for return parameter in function, but none was given.
function getHarvesterData(address batchNo) public onlyAuthCaller view returns(string cropVariety,
^----------------^
,project:/contracts/SupplyChainStorage.sol:265:92: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string temperatureUsed,
^--------------------^
,project:/contracts/SupplyChainStorage.sol:266:92: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string humidity){
^-------------^
,project:/contracts/SupplyChainStorage.sol:275:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _destinationAddress,
^------------------------^
,project:/contracts/SupplyChainStorage.sol:276:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipName,
^--------------^
,project:/contracts/SupplyChainStorage.sol:277:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipNo,
^------------^
,project:/contracts/SupplyChainStorage.sol:298:65: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string destinationAddress,
^-----------------------^
,project:/contracts/SupplyChainStorage.sol:299:65: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipName,
^-------------^
,project:/contracts/SupplyChainStorage.sol:300:65: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipNo,
^-----------^
,project:/contracts/SupplyChainStorage.sol:324:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipName,
^--------------^
,project:/contracts/SupplyChainStorage.sol:325:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _shipNo,
^------------^
,project:/contracts/SupplyChainStorage.sol:326:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _transportInfo,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:327:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _warehouseName,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:328:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _warehouseAddress,
^----------------------^
,project:/contracts/SupplyChainStorage.sol:349:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipName,
^-------------^
,project:/contracts/SupplyChainStorage.sol:350:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string shipNo,
^-----------^
,project:/contracts/SupplyChainStorage.sol:352:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string transportInfo,
^------------------^
,project:/contracts/SupplyChainStorage.sol:353:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string warehouseName,
^------------------^
,project:/contracts/SupplyChainStorage.sol:354:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string warehouseAddress,
^---------------------^
,project:/contracts/SupplyChainStorage.sol:375:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _temperature,
^-----------------^
,project:/contracts/SupplyChainStorage.sol:377:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _internalBatchNo,
^---------------------^
,project:/contracts/SupplyChainStorage.sol:379:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _processorName,
^-------------------^
,project:/contracts/SupplyChainStorage.sol:380:31: TypeError: Data location must be "memory" for parameter in function, but none was given.
string _processorAddress) public onlyAuthCaller returns(bool){
^----------------------^
,project:/contracts/SupplyChainStorage.sol:402:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string temperature,
^----------------^
,project:/contracts/SupplyChainStorage.sol:404:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string internalBatchNo,
^--------------------^
,project:/contracts/SupplyChainStorage.sol:406:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string processorName,
^------------------^
,project:/contracts/SupplyChainStorage.sol:407:89: TypeError: Data location must be "memory" for return parameter in function, but none was given.
string processorAddress){
^---------------------^
The text was updated successfully, but these errors were encountered: