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

		if Token::types_check(tokens, &params) {
			Ok(code.into_iter().chain(encode(tokens)).collect())
		} else {
			Err(Error::InvalidData)
		}
	}
/// Prepares ABI constructor call with given input params.
Prepares ABI constructor call with given input params.
Prepares ABI constructor call with given input params .
pub fn encode_input(&self, code: Bytes, tokens: &[Token]) -> Result<Bytes> {
		let params = self.param_types();
		if Token::types_check(tokens, &params) {
			Ok(code.into_iter().chain(encode(tokens)).collect())
		} else {
			Err(Error::InvalidData)
		}
	}
pub fn encode_input ( & self , code : Bytes , tokens : & [ Token ] ) -> Result < Bytes > { let params = self . param_types ( ) ; if Token :: types_check ( tokens , & params ) { Ok ( code . into_iter ( ) . chain ( encode ( tokens ) ) . collect ( ) ) } else { Err ( Error :: InvalidData ) } }
Prepares ABI constructor call with given input params.
Prepares ABI constructor call with given input params .
&self
code
Bytes
tokens
&[Token]