flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Audit] Stream creation wizard never receives a real transaction hash

Open K1NGD4VID opened this issue 3 months ago • 8 comments

Filed from the second-wave repository audit (issue 1/100). See the audit summary for full category context.

  • Location: frontend/src/components/stream-creation/StreamCreationWizard.tsx:384-386
  • Problem: handleSubmit casts onSubmit(formData)'s return to { txHash: string }, but the prop type is Promise<void> and the real implementation (dashboard-view.tsx handleCreateStream) returns nothing. result is always undefined, so the "confirming" UI's displayed txHash (line 572) is permanently blank.
  • Evidence: const result = (await onSubmit(formData)) as unknown as { txHash: string }; — type-unsafe cast masking a real undefined.
  • Suggested implementation: Change onSubmit's type to Promise<{ txHash: string }>, update handleCreateStream to return the real hash from createStream(), remove the unsafe cast.
  • Acceptance criteria: After creating a stream, the confirming/success UI shows the actual submitted transaction hash, verified by a new test asserting onSubmit's resolved value is surfaced.
  • Difficulty: S
  • Expected impact: Users can no longer verify their transaction on an explorer; fixes a visibly broken confirmation screen.

K1NGD4VID avatar Aug 29 '26 18:08 K1NGD4VID

I reviewed the wizard and dashboard-view code. I’ll change onSubmit to return the real transaction hash, remove the unsafe cast, and add a regression test that surfaces the submitted hash in the confirming/success UI.

ZacLou avatar Sep 08 '26 08:09 ZacLou

@benedict102 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

I would like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @benedict102 to this issue.

benedict102 avatar Sep 27 '26 15:09 benedict102

@EmannuellaO has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

please assign me to this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @EmannuellaO to this issue.

EmannuellaO avatar Sep 29 '26 13:09 EmannuellaO

@lawalajose has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

kindly assign boss

ℹ️ Repo Maintainers: To accept this application, review their application or assign @lawalajose to this issue.

lawalajose avatar Sep 30 '26 10:09 lawalajose

Congratulations, @lawalajose! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

🧑‍💻 @lawalajose: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Sep 30 '26 11:09 drips-wave[bot]

@p4uld4vid016-code has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello maintainer, i would like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @p4uld4vid016-code to this issue.

p4uld4vid016-code avatar Oct 16 '26 22:10 p4uld4vid016-code

Congratulations, @p4uld4vid016-code! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

🧑‍💻 @p4uld4vid016-code: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Oct 16 '26 22:10 drips-wave[bot]

This issue has been completed by @p4uld4vid016-code as part of the Stellar Wave Program's 10th Wave 🥳

😎 @p4uld4vid016-code: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Oct 18 '26 02:10 drips-wave[bot]