Ok I am trying to figure out why Remix IDE is throwing an error saying the
Data location 'memory' must be given.....
for a string argument but the uint arguments don't throw any error?
pragma solidity >=0.4.25 <0.6.0;
contract Monopoly {
string public player1;
uint32 public player2;
uint32 public player3;
constructor(string memory _player1, uint32 _player2, uint32 _player3) public {
player1 = _player1;
player2 = _player2;
player3 = _player3;
}
}
uint[]
parameter, but not auint
. This seems to apply to all functions, not just the constructor.