routing: remove paymentFailure pointer
This introduces an option instead to signal whether there was a failure for result interpretation.
This commit is contained in:
3 files changed
+30
-23
No files matched your search
@@ -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,
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user