Commit 610c4f2
authored
fix: remove duplicate gas fee tokens check (#7234)
## Explanation
Remove unnecessary additional call to `checkGasFeeTokenBeforePublish`.
## References
Related to
[#23137](MetaMask/metamask-mobile#23137)
## Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've communicated my changes to consumers by [updating changelogs
for packages I've
changed](https://github.com/MetaMask/core/tree/main/docs/contributing.md#updating-changelogs)
- [x] I've introduced [breaking
changes](https://github.com/MetaMask/core/tree/main/docs/breaking-changes.md)
in this PR and have prepared draft pull requests for clients and
consumer packages to resolve them
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes the redundant gas fee token/balance check during approval (now
only checked post-beforeSign), adds a log when skipping nonce for
external signing, and updates the changelog.
>
> - **Transaction Controller**:
> - Remove duplicate `checkGasFeeTokenBeforePublish` invocation in
`#approveTransaction`; gas fee tokens/balance are now checked only in
`#signTransaction` after the `beforeSign` hook.
> - **Utils**:
> - Add log in `utils/nonce#getNextNonce` when skipping nonce for
`isExternalSign`.
> - **Changelog**:
> - Document fix to check balance and gas fee tokens only after before
sign hook.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
38f9eca. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 9688009 commit 610c4f2
File tree
3 files changed
+5
-11
lines changed- packages/transaction-controller
- src
- utils
3 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3176 | 3176 | | |
3177 | 3177 | | |
3178 | 3178 | | |
3179 | | - | |
3180 | | - | |
3181 | | - | |
3182 | | - | |
3183 | | - | |
3184 | | - | |
3185 | | - | |
3186 | | - | |
3187 | | - | |
3188 | | - | |
3189 | | - | |
3190 | 3179 | | |
3191 | 3180 | | |
3192 | 3181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments