Eip712TypedData constructor

const Eip712TypedData({
  1. required Map<String, List<Eip712TypeDetails>> types,
  2. required String primaryType,
  3. required Map<String, dynamic> domain,
  4. required Map<String, dynamic> message,
  5. EIP712Version version = EIP712Version.v4,
})

Constructor for Eip712TypedData.

Implementation

const Eip712TypedData({
  required this.types,
  required this.primaryType,
  required this.domain,
  required this.message,
  this.version = EIP712Version.v4,
}) : assert(version != EIP712Version.v1, "use EIP712V1 class for EIP712 V1");