Function encode_sequence

Source
pub fn encode_sequence<T: for<'a> SolParamsEncode<'a>>(value: &T) -> Vec<u8> 
Expand description

Solidity ABI encode the given value as a parameter sequence.

§Note

  • T must be a tuple type where each member implements SolEncode.
  • The result can be different from SolEncode::encode for the given tuple because this function always returns the encoded data in place, even for tuples containing dynamic types (i.e. no top-level offset is included for dynamic tuples).

This function is a convenience wrapper for SolParamsEncode::encode.