Skip to content

fix(multichain-account-service): add missing name class field - #6173

Merged
ccharly merged 1 commit into
mainfrom
fix/missing-service-name
Jul 23, 2025
Merged

ccharly merged 1 commit into
mainfrom
fix/missing-service-name

Conversation

@ccharly

@ccharly ccharly commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

Explanation

This .name is required by the controller-init pattern on our clients, see:

References

N/A

Changelog

N/A

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@ccharly
ccharly force-pushed the fix/missing-service-name branch from 78a3437 to 35cd5a9 Compare July 23, 2025 12:02
@ccharly
ccharly force-pushed the fix/missing-service-name branch from 35cd5a9 to 902c2b8 Compare July 23, 2025 12:02
@ccharly ccharly changed the title fix(multichain-account-serbice): add missing name fix(multichain-account-service): add missing name class field Jul 23, 2025
@ccharly
ccharly marked this pull request as ready for review July 23, 2025 12:02
@ccharly
ccharly requested review from a team as code owners July 23, 2025 12:02
@ccharly
ccharly enabled auto-merge (squash) July 23, 2025 12:05
@ccharly
ccharly merged commit 59cdaa9 into main Jul 23, 2025
@ccharly
ccharly deleted the fix/missing-service-name branch July 23, 2025 12:08
matthewwalsh0 added a commit that referenced this pull request Nov 13, 2025
## Explanation

Support providing `gasFeeToken` when adding a transaction or transaction
batch.

## References

Related to
[#6173](MetaMask/MetaMask-planning#6173)

## 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),
highlighting breaking changes as necessary
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds optional gas fee token support to transaction APIs and
validates/removes it before publish based on native balance, with
supporting balance utilities and tests.
> 
> - **API/Types**:
> - Add optional `gasFeeToken` to `addTransaction` and
`addTransactionBatch`.
> - Extend `TransactionMeta` with `isGasFeeTokenIgnoredIfBalance`;
initialize `selectedGasFeeToken` and flag on add.
> - **Publish Flow**:
> - New `checkGasFeeTokenBeforePublish` ensures native balance
sufficiency; unsets `selectedGasFeeToken` and clears `isExternalSign` if
native balance covers gas; fetches tokens if missing; throws if invalid
selection.
> - Refactor `TransactionController` to call this check and add
`#getGasFeeTokens` helper.
> - **Utils**:
> - Add `balance` module (`getNativeBalance`,
`isNativeBalanceSufficientForGas`) using `bignumber.js`; use it in
`balance-changes`.
> - Enhance `gas-fee-tokens` to build auth lists and parse sponsorship;
add tests.
> - **Batch**:
>   - Pass `gasFeeToken` through `addTransactionBatch` path.
> - **Misc**:
> - Update tests; lower Jest function coverage threshold; add
`bignumber.js` dependency; update changelog.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2ffc7e8568047a11bb61a39257c77363b9ed382f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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.

3 participants