diff --git a/app/scripts/metamask-controller.test.js b/app/scripts/metamask-controller.test.js index 2ccf864b0edd..0cd4fba34589 100644 --- a/app/scripts/metamask-controller.test.js +++ b/app/scripts/metamask-controller.test.js @@ -2307,7 +2307,7 @@ describe('MetaMaskController', () => { ...mockEvmAccount, id: '21690786-6abd-45d8-a9f0-9ff1d8ca76a1', type: BtcAccountType.P2wpkh, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], address: 'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq', }; @@ -2415,7 +2415,7 @@ describe('MetaMaskController', () => { ...mockEvmAccount, id: '21690786-6abd-45d8-a9f0-9ff1d8ca76a1', type: BtcAccountType.P2wpkh, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], address: 'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq', // We need to have a "Snap account" account here, since the MultichainBalancesController will // filter it out otherwise! diff --git a/lavamoat/build-system/policy.json b/lavamoat/build-system/policy.json index 1cadff4100d7..bdbc36f6819b 100644 --- a/lavamoat/build-system/policy.json +++ b/lavamoat/build-system/policy.json @@ -2040,7 +2040,8 @@ "chokidar>normalize-path": true, "chokidar>readdirp": true, "del>is-glob": true, - "eslint>glob-parent": true + "eslint>glob-parent": true, + "tsx>fsevents": true } }, "chokidar>anymatch": { @@ -8767,6 +8768,13 @@ "typescript": true } }, + "tsx>fsevents": { + "globals": { + "console.assert": true, + "process.platform": true + }, + "native": true + }, "typescript": { "builtin": { "buffer.Buffer": true, diff --git a/test/data/mock-accounts.ts b/test/data/mock-accounts.ts index 2273915f7a5f..b956dbadd6bb 100644 --- a/test/data/mock-accounts.ts +++ b/test/data/mock-accounts.ts @@ -42,7 +42,7 @@ export const MOCK_ACCOUNT_BIP122_P2WPKH: InternalAccount = { id: 'ae247df6-3911-47f7-9e36-28e6a7d96078', address: 'bc1qwl8399fz829uqvqly9tcatgrgtwp3udnhxfq4k', options: {}, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], type: BtcAccountType.P2wpkh, metadata: { name: 'Bitcoin Account', @@ -56,7 +56,7 @@ export const MOCK_ACCOUNT_BIP122_P2WPKH_TESTNET: InternalAccount = { id: 'fcdafe8b-4bdf-4e25-9051-e255b2a0af5f', address: 'tb1q6rmsq3vlfdhjdhtkxlqtuhhlr6pmj09y6w43g8', options: {}, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], type: BtcAccountType.P2wpkh, metadata: { name: 'Bitcoin Testnet Account', diff --git a/test/jest/mocks.ts b/test/jest/mocks.ts index be1120429290..bc7127fb2383 100644 --- a/test/jest/mocks.ts +++ b/test/jest/mocks.ts @@ -214,7 +214,7 @@ export function createMockInternalAccount({ ]; break; case BtcAccountType.P2wpkh: - methods = [BtcMethod.SendMany]; + methods = [BtcMethod.SendBitcoin]; break; default: throw new Error(`Unknown account type: ${type}`); diff --git a/ui/components/app/wallet-overview/btc-overview.test.tsx b/ui/components/app/wallet-overview/btc-overview.test.tsx index 671e03a87ea8..5c580e920167 100644 --- a/ui/components/app/wallet-overview/btc-overview.test.tsx +++ b/ui/components/app/wallet-overview/btc-overview.test.tsx @@ -59,7 +59,7 @@ const mockNonEvmAccount = { }, }, options: {}, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], type: BtcAccountType.P2wpkh, }; diff --git a/ui/components/ui/account-list/account-list.test.js b/ui/components/ui/account-list/account-list.test.js index e815b11069c5..274035710dc1 100644 --- a/ui/components/ui/account-list/account-list.test.js +++ b/ui/components/ui/account-list/account-list.test.js @@ -25,7 +25,7 @@ const mockNonEvmAccount = { address: 'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq', name: 'BTC Account', type: BtcAccountType.P2wpkh, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], }), addressLabel: 'BTC Account', balance: '1', @@ -109,7 +109,7 @@ describe('AccountList', () => { }, }, options: {}, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], type: BtcAccountType.P2wpkh, address: 'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq', }, diff --git a/ui/helpers/utils/permissions.test.ts b/ui/helpers/utils/permissions.test.ts index 2ebfd42b2874..43857afb1815 100644 --- a/ui/helpers/utils/permissions.test.ts +++ b/ui/helpers/utils/permissions.test.ts @@ -11,7 +11,7 @@ const mockNonEvmAccount = { ...mockAccount, id: '4b94987c-165c-4287-bbc6-bee9c440e82a', type: BtcAccountType.P2wpkh, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], address: 'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq', }; diff --git a/ui/hooks/accounts/useMultichainWalletSnapClient.test.ts b/ui/hooks/accounts/useMultichainWalletSnapClient.test.ts index d177986fee44..5efdbfd9b4ea 100644 --- a/ui/hooks/accounts/useMultichainWalletSnapClient.test.ts +++ b/ui/hooks/accounts/useMultichainWalletSnapClient.test.ts @@ -35,7 +35,7 @@ describe('useMultichainWalletSnapClient', () => { address: 'tb1q2hjrlnf8kmtt5dj6e49gqzy6jnpe0sj7ty50cl', id: '11a33c6b-0d46-43f4-a401-01587d575fd0', options: {}, - methods: [BtcMethod.SendMany], + methods: [BtcMethod.SendBitcoin], type: BtcAccountType.P2wpkh, }, },