Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe('MultichainAccountServiceInit', () => {

expect(accountTreeControllerClassMock).toHaveBeenCalledWith({
messenger: requestMock.controllerMessenger,
providers: expect.any(Array),
});
});
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { MultichainAccountService } from '@metamask/multichain-account-service';
import {
///: BEGIN:ONLY_INCLUDE_IF(bitcoin)
BtcAccountProvider,
///: END:ONLY_INCLUDE_IF
MultichainAccountService,
} from '@metamask/multichain-account-service';
import { ControllerInitFunction } from '../types';
import {
MultichainAccountServiceMessenger,
Expand Down Expand Up @@ -26,6 +31,11 @@ export const MultichainAccountServiceInit: ControllerInitFunction<
> = ({ controllerMessenger, initMessenger }) => {
const controller = new MultichainAccountService({
messenger: controllerMessenger,
providers: [
///: BEGIN:ONLY_INCLUDE_IF(bitcoin)
new BtcAccountProvider(controllerMessenger),
///: END:ONLY_INCLUDE_IF
],
});

const preferencesState = initMessenger.call('PreferencesController:getState');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
"@metamask/approval-controller": "^7.0.0",
"@metamask/assets-controllers": "patch:@metamask/assets-controllers@npm%3A78.0.0#~/.yarn/patches/@metamask-assets-controllers-npm-78.0.0-95e99a2835.patch",
"@metamask/base-controller": "^8.3.0",
"@metamask/bitcoin-wallet-snap": "^1.0.0",
"@metamask/bitcoin-wallet-snap": "^1.2.0",
"@metamask/bridge-controller": "^48.0.0",
"@metamask/bridge-status-controller": "^48.0.0",
"@metamask/browser-passworder": "^4.3.0",
Expand Down Expand Up @@ -321,7 +321,7 @@
"@metamask/message-manager": "^13.0.0",
"@metamask/message-signing-snap": "1.1.3",
"@metamask/metamask-eth-abis": "^3.1.1",
"@metamask/multichain-account-service": "^1.5.0",
"@metamask/multichain-account-service": "^1.6.0",
"@metamask/multichain-api-client": "^0.7.0",
"@metamask/multichain-api-middleware": "1.2.0",
"@metamask/multichain-network-controller": "^1.0.0",
Expand Down
1 change: 1 addition & 0 deletions privacy-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"bafkreifvhjdf6ve4jfv6qytqtux5nd4nwnelioeiqx5x2ez5yrgrzk7ypi.ipfs.dweb.link",
"bafybeidxfmwycgzcp4v2togflpqh2gnibuexjy4m4qqwxp7nh3jx5zlh4y.ipfs.dweb.link",
"base-mainnet.infura.io",
"bitcoin-mainnet.infura.io",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you clarify, is this functionality disabled if basic functionality is disabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, same as solana and any other non-evm network working from a snap

"bridge.api.cx.metamask.io",
"bridge.dev-api.cx.metamask.io",
"bsc-dataseed.binance.org",
Expand Down
Loading
Loading