Skip to content

Commit

Permalink
fix: isL1ToL2 assignment in wallet store
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Aug 21, 2024
1 parent 670d013 commit 92f5d1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions contracts/src/bridge/frontend/src/stores/wallet-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const useWalletStore = create<IWalletState>((set, get) => ({
set({
provider: detectedProvider,
signer: newSigner,
isL1ToL2: !isL1,
isL1ToL2: isL1,
isWrongNetwork: chainId !== expectedChainId,
});

Expand Down Expand Up @@ -174,10 +174,6 @@ const useWalletStore = create<IWalletState>((set, get) => ({

get().initializeProvider();
},

updateNetworkStatus: (isWrongNetwork: boolean) => {
set({ isWrongNetwork });
},
}));

export default useWalletStore;
1 change: 0 additions & 1 deletion contracts/src/bridge/frontend/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ export interface IWalletState {
disconnectWallet: () => void;
switchNetwork: () => void;
restoreWalletState: () => void;
updateNetworkStatus: (isWrongNetwork: boolean) => void;
}

export type ButtonVariants =
Expand Down

0 comments on commit 92f5d1c

Please sign in to comment.