Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade assets controllers to version 33 #25484

Merged
merged 17 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

251 changes: 0 additions & 251 deletions .yarn/patches/@metamask-assets-controllers-patch-a3b39b55a6.patch

This file was deleted.

9 changes: 0 additions & 9 deletions app/scripts/metamask-controller.actions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@ describe('MetaMaskController', function () {
const decimals = 18;

it('two parallel calls with same token details give same result', async function () {
const supportsInterfaceStub = jest.fn().mockResolvedValue(false);
jest
.spyOn(metamaskController.tokensController, '_createEthersContract')
.mockResolvedValue({ supportsInterface: supportsInterfaceStub });

const [token1, token2] = await Promise.all([
metamaskController.getApi().addToken({ address, symbol, decimals }),
metamaskController.getApi().addToken({ address, symbol, decimals }),
Expand All @@ -235,10 +230,6 @@ describe('MetaMaskController', function () {
});

it('networkClientId is used when provided', async function () {
const supportsInterfaceStub = jest.fn().mockResolvedValue(false);
jest
.spyOn(metamaskController.tokensController, '_createEthersContract')
.mockResolvedValue({ supportsInterface: supportsInterfaceStub });
const callSpy = jest
.spyOn(metamaskController.controllerMessenger, 'call')
.mockReturnValue({ configuration: { chainId: '0xa' } });
Expand Down
Loading