routing: remove paymentFailure pointer

This introduces an option instead to signal whether there was a failure
for result interpretation.
This commit is contained in:
bitromortac committed 2025-04-30 17:43:58 +02:00
1 parent 4498a78cb0
commit a450d85309
3 files changed
+30 -23

No files matched your search

+1 -1
View File
@@ -732,7 +732,7 @@ func TestResultInterpretation(t *testing.T) {
t.Run(testCase.name, func(t *testing.T) {
var failure fn.Option[paymentFailure]
if !testCase.success {
failure = fn.Some(*newPaymentFailure(
failure = fn.Some(newPaymentFailure(
&testCase.failureSrcIdx,
testCase.failure,
))