-
Notifications
You must be signed in to change notification settings - Fork 13
Fix validation error on sending payment to uppercase lightning address #68
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
Fix validation error on sending payment to uppercase lightning address #68
Conversation
2b5ab2c to
38a4422
Compare
Cannot send payment to an all uppercase lightning address like those created by the Phoenix wallet on iOS. Validation fails. Fixes issue ElementsProject#66.
38a4422 to
4e7b7c0
Compare
| @@ -1 +1 @@ | |||
| <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./images/cln-favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="color-scheme" content="light dark"><meta name="description" content="Core lightning application"/><link rel="apple-touch-icon" href="./images/cln-logo-dark.png"/><title>Core Lightning</title><script defer="defer" src="/static/js/main.f54a8dcd.js"></script><link href="/static/css/main.1ce19166.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> No newline at end of file | |||
| <!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./images/cln-favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="color-scheme" content="light dark"><meta name="description" content="Core lightning application"/><link rel="apple-touch-icon" href="./images/cln-logo-dark.png"/><title>Core Lightning</title><script defer="defer" src="/static/js/main.4501e70f.js"></script><link href="/static/css/main.1ce19166.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uploaded production optimised React build with npm run frontend:build.
| const [enteredValue, setEnteredValue] = useState(''); | ||
| const [isTouched, setIsTouched] = useState(false); | ||
|
|
||
| const normalizeValue = (value: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
We can directly convert the invoice/offer value to lowercase as done in the initial PR. However, converting the
useInputhook to accept a type will make the project and other inputs more future-ready. -
Adding a basic set of automated tests could enhance the overall quality of the PR.
Cannot send payment to an all uppercase lightning address like those created by the Phoenix wallet on iOS. Validation fails. Fixes issue ElementsProject#66.
* Updating version number * Display Invoice Rune (#56) * Display Invoice Rune * Cosmetic updates for Invoice Rune * Update plus/add icon svg (#70) * Resolve commando-rune deprecation and use createrune instead (#72) * Change invoice and offer to lowercase (#68) * Add tests for address casing fix (#69) * Update jsx camelCase property name * Adding mock use-http hook * Add tests for invoice and offer capital casing --------- Co-authored-by: Michael Evans <evansmj@users.noreply.github.com> Co-authored-by: afxsoftware <33781025+afxsoftware@users.noreply.github.com>
No description provided.