extendedMarshalBinary method
Implementation
@override
Uint8List extendedMarshalBinary() {
List<int> forConcat = [];
forConcat.addAll(uvarintMarshalBinary(TransactionType.sendTokens, 1));
if (_hash != null) {
if (_hash!.length != 32) {
throw Exception("Invalid hash length");
}
forConcat.addAll(hashMarshalBinary(_hash!, 2));
}
if (_meta != null) {
forConcat.addAll(bytesMarshalBinary(_meta!, 3));
}
for (TokenRecipient recipient in _to) {
forConcat.addAll(
fieldMarshalBinary(4, TokenRecipient.marshalBinaryTokenRecipient(recipient)));
}
return forConcat.asUint8List();
}