redeem property
Redeem
Implementation
@override
Payment? get redeem {
if (super.redeem == null) {
if (_a.input != null) {
final chunks = _chunks;
final output = chunks![chunks.length - 1];
if (output is Uint8List) {
super.redeem = Payment(
network: network,
output: output,
input:
bscript.script.compile(chunks.sublist(0, chunks.length - 1)),
witness: _a.witness ?? []);
}
}
}
return super.redeem;
}