pub fn check_params<P: ContractParams>(params: &P) -> Result<(), String>Expand description
Hold one operation’s parameter type to the parameters the contract declares.
params must be fully populated: the check is two-directional, so a value
left unset reads as a parameter the type cannot express.
§Errors
A message naming every parameter the type sends that the contract does not declare, and every non-path parameter the contract declares that the type cannot send.