serialize method

  1. @override
Uint8List serialize({
  1. bool sig = true,
})
override

Returns the serialized encoding of the legacy transaction.

Implementation

@override
Uint8List serialize({bool sig = true}) {
  final msg = raw();
  if (!sig) {
    msg.removeRange(6, msg.length);
    msg.addAll([
      intToBuffer(network.chainId),
      Uint8List.fromList([]),
      Uint8List.fromList([])
    ]);
  }
  return rlp.encode(msg);
}