Skip to content

Commit

Permalink
chore: add local bitcoin snap (hack, needs to be removed)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Dec 13, 2024
1 parent 7bab160 commit 3a72085
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/scripts/snaps/preinstalled-snaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import MessageSigningSnap from '@metamask/message-signing-snap/dist/preinstalled
import EnsResolverSnap from '@metamask/ens-resolver-snap/dist/preinstalled-snap.json';
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
import AccountWatcherSnap from '@metamask/account-watcher/dist/preinstalled-snap.json';
import BitcoinWalletSnap from '@metamask/bitcoin-wallet-snap/dist/preinstalled-snap.json';
// import BitcoinWalletSnap from '@metamask/bitcoin-wallet-snap/dist/preinstalled-snap.json';
import PreinstalledExampleSnap from '@metamask/preinstalled-example-snap/dist/preinstalled-snap.json';
///: END:ONLY_INCLUDE_IF
///: BEGIN:ONLY_INCLUDE_IF(solana)
import SolanaWalletSnap from '@metamask/solana-wallet-snap/dist/preinstalled-snap.json';
import BitcoinWalletSnap from './snap-bitcoin-wallet-preinstalled-snap.json';
///: END:ONLY_INCLUDE_IF

// The casts here are less than ideal but we expect the SnapController to validate the inputs.
Expand Down
67 changes: 67 additions & 0 deletions app/scripts/snaps/snap-bitcoin-wallet-preinstalled-snap.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion shared/lib/accounts/bitcoin-wallet-snap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SnapId } from '@metamask/snaps-sdk';
// This dependency is still installed as part of the `package.json`, however
// the Snap is being pre-installed only for Flask build (for the moment).
import BitcoinWalletSnap from '@metamask/bitcoin-wallet-snap/dist/preinstalled-snap.json';
import BitcoinWalletSnap from '../../../app/scripts/snaps/snap-bitcoin-wallet-preinstalled-snap.json';

export const BITCOIN_WALLET_SNAP_ID: SnapId =
BitcoinWalletSnap.snapId as SnapId;
Expand Down

0 comments on commit 3a72085

Please sign in to comment.