encode_type

Function encode_type 

Source
pub fn encode_type(
    primary_type: &str,
    types: &Types,
) -> Result<String, Eip712Error>
Expand description

Encodes the type of an object by encoding a comma delimited list of its members.

  • primary_type: The root type to encode.
  • types: All type definitions.

Returns the encoded representation of the field.