TypeError: Invalid type for argument in function call. Invalid implicit conversion from bytes calldata to uint256 requested. proposals.push(msg.data);
pragma solidity ^0.4.17;
contract FantasyLeague {
// Define addresses of league members
address public member;
// Hold data of proposed number
uint[] public proposals;
// Deploy contract
constructor() public {
member = msg.sender;
}
// Propose new team number
function proposeNumber (uint) public payable {
require(msg.value > .01 ether);
proposals.push(msg.data);
}
// Retrieve List of current proposals
function getProposals () public view returns (uint[]) {
return proposals;
}
}