Skip to content

Commit f560e74

Browse files
committed
Do not allow remote send while feature isn't implemented on public flows
1 parent 37b2bcf commit f560e74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/code/server/transaction/intent_handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@ func (h *SendPublicPaymentIntentHandler) validateActions(
453453
if len(actions) != 1 {
454454
return newIntentValidationError("expected 1 action")
455455
}
456+
if metadata.IsRemoteSend {
457+
return newIntentDeniedError("remote send is not implemented")
458+
}
456459

457460
var source *common.Account
458461
var err error

0 commit comments

Comments
 (0)