Skip to content

Commit 13302cb

Browse files
author
jeffyanta
authored
Ignore Jupiter setup instruction in the Swap RPC (#52)
1 parent fcdb240 commit 13302cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pkg/code/server/grpc/transaction/v2

pkg/code/server/grpc/transaction/v2/swap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (s *transactionServer) validateSwap(
451451
return newSwapValidationError("expected two compute budget instructions")
452452
}
453453

454-
if len(ixns.SetupInstructions) != 0 || ixns.TokenLedgerInstruction != nil || ixns.CleanupInstruction != nil {
454+
if ixns.TokenLedgerInstruction != nil || ixns.CleanupInstruction != nil {
455455
return newSwapValidationError("unexpected instruction")
456456
}
457457

0 commit comments

Comments
 (0)