Authorization constructor

Authorization({
  1. required BigInt chainId,
  2. required Uint8List address,
  3. required BigInt nonce,
  4. int? v,
  5. Uint8List? r,
  6. Uint8List? s,
})

Implementation

Authorization({
  required this.chainId,
  required this.address,
  required this.nonce,
  this.v,
  this.r,
  this.s,
}) {
  if (address.length != 20) {
    throw ArgumentError('Address must be 20 bytes, got ${address.length}');
  }
}