bug: Amount field accepts non-numeric input — fails on-chain #10
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Swap amount field accepts alphabetic/text input. Submitting text causes on-chain parse error instead of being caught client-side.
Error
Error parsing into type cw20_mintable::msg::ExecuteMsg: invalid Uint128 'afafaf' - invalid digit found in stringExpected
Input field should only accept numeric values. Non-numeric characters should be rejected on input or validated before TX submission.
Steps to Reproduce
Impact
Bad UX — input validation should happen client-side, not on-chain.
Fix implemented in commit
9b210da:/^\d*\.?\d*$/.isNaN(parseFloat(inputAmount))to the Swap button disabled logic so invalid amounts cannot trigger a TX.This prevents the on-chain parse error when text like 'afafaf' is entered. Please verify @Brouie — leaving this open until you confirm.
Verified fixed — amount field now rejects non-numeric input.
mentioned in issue #1
mentioned in issue #18
mentioned in issue #114
mentioned in issue #112
mentioned in issue #110
mentioned in issue #111
mentioned in issue #113
mentioned in issue #133
mentioned in issue #148