serialize method
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);
}