encodeTo method
Convert self to a slice and append it to the destination.
Implementation
@override
void encodeTo(UncheckedExtrinsic value, Output output) {
final int extrinsicVersion = value.version;
// Only set the signed bit (0x80) if there's a signature
final int versionByte = value.signature != null ? (extrinsicVersion | 0x80) : extrinsicVersion;
output.pushByte(versionByte);
// Encode signature if present
if (value.signature != null) {
_signatureCodec.encodeTo(value.signature!, output);
}
// Encode call
_callCodec.encodeTo(value.call, output);
}