Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent non-positive-number amounts for send / request commands (#668) #704

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

GustavoNunes
Copy link
Contributor

@GustavoNunes GustavoNunes commented Jan 10, 2017

Quick fix to prevent non-numbers in request command. Used the same check as the send command (web3.toWei).

Also preventing 0 or negative amount, as I believe makes no sense (I was able to "send -3 ether", but the app crashed when it tried to confirm the transaction).

fixes #668

@GustavoNunes GustavoNunes changed the base branch from master to develop January 11, 2017 15:59
@0xc1c4da 0xc1c4da merged commit 395d3de into status-im:develop Jan 12, 2017
@0xc1c4da
Copy link
Contributor

Thanks for the contribution @GustavoNunes !

@Monali109-zz
Copy link

@GustavoNunes /request cmd is requesting for Zero amount also. Should validate that requested amount is > 0.Please see attached screenshot.
validationeth0

Status Version -
http://artifacts.status.im:8081/artifactory/nightlies-local/im.status.ethereum-ee2904.apk
OS - Android 6.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requesting null eth
3 participants