fix(wallet): narrow the bolt11 amount section so the build passes #168
No reviewers
Labels
No labels
app:activities
app:chat
app:chatelet
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/wallet-bolt11-section-narrowing"
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?
devcurrently does not build. This is fallout from #162 and should go in before anything is deployed fromdev.Sectionin light-bolt11-decoder is a discriminated union, and itschecksummember carries onlyletters, novalue. The predicate was written(s: any) => s.name === 'amount', which is not a type guard, sofindreturned the whole union and.valuecould not resolve against every member.Replaced with a real type predicate that narrows to the
amountmember.How I let this through
I verified #162 with
vue-tsc --noEmit, but the build script runsvue-tsc -b, which uses the project-reference config and is stricter. The two disagree, so--noEmitpassing is not evidence that the build passes. That was the wrong check.#166 did run a full
npm run build:wallet, which is why this looked clean at the time, but that branch was cut from #165 and never contained #162's code. The gap only appeared once all six were merged together.Verification
Ran the actual build command that failed:
Amountless behaviour re-verified after the narrowing, unchanged:
pending#169