Commit 5a7b685
fix(choose-name): only sponsor gas for claim, not for unset
ChooseNameSummaryContent set KIT_PAYS_GAS = true unconditionally,
which hid the GasFeeSummary chip, forced hasEnoughGasBalance true,
disabled the gas-estimation error banner, and bypassed the loading
gate on the Confirm button.
But the component routes to useUnsetDomain when isUnsetting=true
(see the unsetDomainHook / vetDomainHook / veWorldSubdomainHook
switch around line 103), and useUnsetDomain does NOT pass the
kit-sponsored delegator URL — the unset path still runs through the
user-pays generic delegator. Result: the user got the
"VeChain pays" UI but the tx still tried to debit their own VTHO.
Compute KIT_PAYS_GAS = !isUnsetting so the unset path falls back to
the normal fee-token UI / balance check / estimation-error display.
All five downstream gates (shouldEstimateGas,
disableConfirmButtonDuringEstimation, hasEnoughBalance, GasFeeSummary
render, showGasEstimationError) already read KIT_PAYS_GAS and need
no additional changes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3401b5b commit 5a7b685
1 file changed
Lines changed: 7 additions & 4 deletions
File tree
- packages/vechain-kit/src/components/AccountModal/Contents/ChooseName
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
0 commit comments