Skip to content

Commit

Permalink
🚧 try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Burg committed Sep 11, 2023
1 parent d855fd1 commit 1aee66a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions batcher-ui/src/contexts/wallet.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { TezosToolkit } from '@taquito/taquito';
import React, { createContext, useEffect, useReducer } from 'react';
import { BeaconWallet } from '@taquito/beacon-wallet';
import { AccountInfo, NetworkType } from '@airgap/beacon-sdk';
import { AccountInfo } from '@airgap/beacon-sdk';
import { useTezosToolkit } from './tezos-toolkit';
import { getByKey, setByKey } from 'src/utils/local-storage';
import { NetworkType } from '@airgap/beacon-types';

type WalletState = {
wallet: BeaconWallet | undefined;
Expand Down Expand Up @@ -33,10 +34,10 @@ const connectWallet = async (tezos: TezosToolkit | undefined) => {
if (!tezos) return Promise.reject('ERROR');
const wallet = new BeaconWallet({
name: 'batcher',
preferredNetwork:
process.env.NEXT_PUBLIC_NETWORK_TARGET === 'GHOSTNET'
? NetworkType.GHOSTNET
: NetworkType.MAINNET,
preferredNetwork: NetworkType.GHOSTNET,
// process.env.NEXT_PUBLIC_NETWORK_TARGET === 'GHOSTNET'
// ? NetworkType.GHOSTNET
// : NetworkType.MAINNET,
});

tezos.setWalletProvider(wallet);
Expand Down

0 comments on commit 1aee66a

Please sign in to comment.