Skip to content

Commit 637b145

Browse files
committed
Fix crash when gift card account triggers intent other than receive payments publicly
1 parent 1a0e0ee commit 637b145

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/code/server/transaction/intent.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ func (s *transactionServer) SubmitIntent(streamer transactionpb.Transaction_Subm
151151
return newActionValidationError(submitActionsReq.Actions[0], "expected a no privacy withdraw action")
152152
}
153153
}
154+
default:
155+
return newIntentValidationError("expected a receive payments publicly intent")
154156
}
155157
default:
156158
log.Warnf("unhandled owner account type %s", submitActionsOwnerMetadata.Type)

0 commit comments

Comments
 (0)