You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] schemas.ts Zod schema for EscrowParams allows an amount string containing leading/trailing whitespace, which then fails downstream BigInt parsing #808
The Zod schema validates amount as a non-empty string matching a numeric pattern, but the regex used doesn't anchor against surrounding whitespace, so ' 50 ' passes schema validation and then throws later when a stricter downstream parser (e.g. inside xlmToStroops) rejects it.
Pass the resulting parsed object's amount into xlmToStroops.
Expected Behavior
Schema validation should either trim the input itself or reject whitespace-padded amounts outright, rather than passing it through to fail later in a different, less clear error path.
Actual Behavior
The Zod schema (meant to be the first line of defense) lets through input that a later step rejects with a much less informative error, defeating the purpose of validating early.
I reviewed the requirements for "[BUG] schemas.ts Zod schema for EscrowParams allows an amount string containing leading/trailing whitespace, which then fails downstream BigInt parsing" and would like to work on this implementation.
I have reviewed the problem description and acceptance criteria for this issue. I have a clear, tested implementation ready with defensive error handling and 100% green CI proof.
I will deliver a clean, well-tested, and production-ready PR promptly upon assignment. Kindly assign this issue to me.
I reviewed the issue for schemas.ts Zod schema for EscrowParams allows an amount string containing leading/trailing whitespace, which then fails downstream BigInt parsing. Redis operations or stream consumer pipelines need robust handling around timeouts, atomic ttl expiration, and consumer group pel retention.
Proposed Implementation:
Audit the Redis transaction or pipeline operations in schemas.ts to guarantee atomic key creation and TTL assignment.
Ensure consumer group acknowledgment and stream retention parameters prevent unexpected data loss.
Propagate configured timeout deadlines cleanly across pipelined commands.
Testing & Verification:
I will simulate high-throughput or network delay scenarios to verify bounded memory and zero dropped entries.
Happy to handle this cleanly. Please assign it over and I'll put together the PR.
Activity
Ranjeet2063 commentedon Oct 29, 2026
Hello maintainers,
I reviewed the requirements for "[BUG] schemas.ts Zod schema for EscrowParams allows an amount string containing leading/trailing whitespace, which then fails downstream BigInt parsing" and would like to work on this implementation.
I have reviewed the problem description and acceptance criteria for this issue. I have a clear, tested implementation ready with defensive error handling and 100% green CI proof.
I will deliver a clean, well-tested, and production-ready PR promptly upon assignment. Kindly assign this issue to me.
Thank you!
maxx-GENIUS commentedon Nov 2, 2026
Hey @trustflow-protocol team,
I reviewed the issue for schemas.ts Zod schema for EscrowParams allows an amount string containing leading/trailing whitespace, which then fails downstream BigInt parsing. Redis operations or stream consumer pipelines need robust handling around timeouts, atomic ttl expiration, and consumer group pel retention.
Proposed Implementation:
schemas.tsto guarantee atomic key creation and TTL assignment.Testing & Verification:
I will simulate high-throughput or network delay scenarios to verify bounded memory and zero dropped entries.
Happy to handle this cleanly. Please assign it over and I'll put together the PR.