Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Error #20

Open
kafukoM opened this issue Dec 21, 2021 · 0 comments
Open

Type Error #20

kafukoM opened this issue Dec 21, 2021 · 0 comments

Comments

@kafukoM
Copy link

kafukoM commented Dec 21, 2021

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){
^---------------------^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant