Skip to content

Commit a3fbc6c

Browse files
committed
Do not crash reference implementation if there is no address in the bip21
1 parent a2a085c commit a3fbc6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bip-0078.mediawiki

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ public async Task<PSBT> RequestPayjoin(
424424
for (int i = 0; i < originalGlobalTx.Outputs.Count; i++)
425425
{
426426
if (optionalParameters.DisableOutputSubstitution ||
427+
bip21.Address == null ||
427428
signedPSBT.Outputs[i].ScriptPubKey != bip21.Address.ScriptPubKey)
428429
ourOutputs.Enqueue((originalGlobalTx.Outputs[i], signedPSBT.Outputs[i]));
429430
}

0 commit comments

Comments
 (0)