Skip to content

Conversation

@afxsoftware
Copy link
Contributor

No description provided.

@ShahanaFarooqui ShahanaFarooqui self-requested a review August 19, 2024 16:35
@ShahanaFarooqui ShahanaFarooqui added this to the Release0.0.6 milestone Aug 19, 2024
@ShahanaFarooqui ShahanaFarooqui changed the base branch from main to Release-0.0.6 September 5, 2024 23:30
@ShahanaFarooqui ShahanaFarooqui linked an issue Sep 6, 2024 that may be closed by this pull request
Cannot send payment to an all uppercase lightning address like those created by the Phoenix wallet on iOS. Validation fails.

Fixes issue ElementsProject#66.
@@ -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
Copy link
Collaborator

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) => {
Copy link
Collaborator

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 useInput hook 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.

@ShahanaFarooqui ShahanaFarooqui merged commit 563199b into ElementsProject:Release-0.0.6 Sep 6, 2024
ShahanaFarooqui pushed a commit to evansmj/cln-application that referenced this pull request Sep 7, 2024
Cannot send payment to an all uppercase lightning address like those created by the Phoenix wallet on iOS. Validation fails.

Fixes issue ElementsProject#66.
ShahanaFarooqui added a commit that referenced this pull request Sep 7, 2024
* 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>
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.

Uppercase Lightning Invoice is Invalid

2 participants