File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 55 BtcAccountType ,
66 isEvmAccountType ,
77 EthScope ,
8- BtcScope ,
98 SolAccountType ,
10- SolScope ,
119 SolMethod ,
1210} from '@metamask/keyring-api' ;
1311import { InternalAccount } from '@metamask/keyring-internal-api' ;
@@ -23,6 +21,7 @@ import {
2321import { MetaMaskReduxState } from '../../ui/store/store' ;
2422import mockState from '../data/mock-state.json' ;
2523import { isBtcMainnetAddress } from '../../shared/lib/multichain/accounts' ;
24+ import { MultichainNetworks } from '../../shared/constants/multichain/networks' ;
2625
2726export type MockState = typeof mockState ;
2827
@@ -241,12 +240,12 @@ export function createMockInternalAccount({
241240 // If no address is given, we fallback to testnet
242241 const isMainnet = Boolean ( address ) && isBtcMainnetAddress ( address ) ;
243242
244- scopes = [ isMainnet ? BtcScope . Mainnet : BtcScope . Testnet ] ;
243+ scopes = [ isMainnet ? MultichainNetworks . BITCOIN : MultichainNetworks . BITCOIN_TESTNET ] ;
245244 methods = Object . values ( BtcMethod ) ;
246245 break ;
247246 }
248247 case SolAccountType . DataAccount :
249- scopes = [ SolScope . Mainnet , SolScope . Testnet , SolScope . Devnet ] ;
248+ scopes = [ MultichainNetworks . SOLANA , MultichainNetworks . SOLANA_TESTNET , MultichainNetworks . SOLANA_DEVNET ] ;
250249 methods = [ SolMethod . SendAndConfirmTransaction ] ;
251250 break ;
252251 default :
You can’t perform that action at this time.
0 commit comments