When I try to call CustomerFactory function I get
ParserError: Expected identifier but got '('
CustomerFactory(1,28);
I went over the documentation and I didn't see what I did wrong. Can someone advise?
pragma solidity ^0.7.0;
contract Manmade {
struct Customer {
uint customerID;
string nick;
}
Customer[] public customers;
function CustomerFactory(uint _customerID,string memory _nick)public{
customers.push(Customer(_customerID,_nick));
}
CustomerFactory(1,"Peter");
}