Skip to content

Commit

Permalink
Default network is Aptos
Browse files Browse the repository at this point in the history
  • Loading branch information
sirWill committed May 24, 2022
1 parent 18a30b9 commit 06f471c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/scripts/controllers/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ if (process.env.IN_TEST) {
} else if (process.env.METAMASK_DEBUG || env === 'test') {
defaultProviderConfigOpts = { type: APTOS, chainId: APTOS_CHAIN_ID };
} else {
defaultProviderConfigOpts = { type: MAINNET, chainId: MAINNET_CHAIN_ID };
// defaultProviderConfigOpts = { type: MAINNET, chainId: MAINNET_CHAIN_ID };
defaultProviderConfigOpts = { type: APTOS, chainId: APTOS_CHAIN_ID };
}

const defaultProviderConfig = {
Expand Down Expand Up @@ -400,7 +401,7 @@ export default class NetworkController extends EventEmitter {

_configureProvider({ type, rpcUrl, chainId }) {
const predefinedRpcUrl = rpcUrl || CHAIN_ID_TO_RPC_URL_MAP[chainId];
const network = CHAIN_ID_TO_TYPE_MAP[chainId]
const network = CHAIN_ID_TO_TYPE_MAP[chainId];

if (!predefinedRpcUrl) {
throw new Error(
Expand Down

0 comments on commit 06f471c

Please sign in to comment.