pub fn encode_input(&self, tokens: &[Token]) -> Result<Bytes> {
		let params = self.input_param_types();

		if !Token::types_check(tokens, &params) {
			return Err(ErrorKind::InvalidData.into());
		}

		let signed = short_signature(&self.name, &params).to_vec();
		let encoded = encode(tokens);
		Ok(signed.into_iter().chain(encoded.into_iter()).collect())
	}
/// Prepares ABI function call with given input params.
Prepares ABI function call with given input params.
Prepares ABI function call with given input params .
pub fn encode_input(&self, tokens: &[Token]) -> Result<Bytes> {
		let params = self.input_param_types();
		if !Token::types_check(tokens, &params) {
			return Err(ErrorKind::InvalidData.into());
		}
		let signed = short_signature(&self.name, &params).to_vec();
		let encoded = encode(tokens);
		Ok(signed.into_iter().chain(encoded.into_iter()).collect())
	}
pub fn encode_input ( & self , tokens : & [ Token ] ) -> Result < Bytes > { let params = self . input_param_types ( ) ; if ! Token :: types_check ( tokens , & params ) { return Err ( ErrorKind :: InvalidData . into ( ) ) ; } let signed = short_signature ( & self . name , & params ) . to_vec ( ) ; let encoded = encode ( tokens ) ; Ok ( signed . into_iter ( ) . chain ( encoded . into_iter ( ) ) . collect ( ) ) }
Prepares ABI function call with given input params.
Prepares ABI function call with given input params .
&self
tokens
&[Token]
&self
tokens
&[Token]