Shivamnema / Supply-Chain-Management-BlockChain-UseCase

GNU General Public License v3.0
79 stars 52 forks source link

syntax issue in smart contract in defining data location for track #9

Closed Ashok-Sandhyala closed 3 years ago

Ashok-Sandhyala commented 3 years ago

solidity code is having issue in declaration of track t = tracks[mid][id]; it is stating that Data location must be "storage", "memory" or "calldata" for variable, but none was given.\

could you please assist me on same

Ashok-Sandhyala commented 3 years ago

Found solution for this issue , defined track location as memory like below track memory t = tracks[mid][id];