Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz committed Apr 12, 2024
1 parent 14dbcd9 commit f78ada6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
4 changes: 3 additions & 1 deletion frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.github
node_modules
package-lock.json
package-lock.json
**/src/sway-api/**
**/src/sway-api/**/**
2 changes: 0 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ function App() {
return null;
}, [wallet, burnerWallet]);

console.log("2", process.env)

return (
<Box css={styles.root}>
{isConnected || (contract && burnerWallet) ? (
Expand Down
11 changes: 6 additions & 5 deletions frontend/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import contractIds from './sway-api/contract-ids.json';

export const FUEL_PROVIDER_URL = 'https://beta-5.fuel.network/graphql';

export const VERCEL_ENV =
process.env.NODE_ENV || 'development';
export const VERCEL_ENV =
process.env.REACT_APP_VERCEL_ENV || process.env.NODE_ENV || 'development';


export const CONTRACT_ID = VERCEL_ENV === 'development' ? contractIds.contract :
'0xd2a93abef5c3f45f48bb9f0736ccfda4c3f32c9c57fc307ab9363ef7712f305f';
export const CONTRACT_ID =
VERCEL_ENV === 'development'
? contractIds.contract
: '0xd2a93abef5c3f45f48bb9f0736ccfda4c3f32c9c57fc307ab9363ef7712f305f';

export const BASE_ASSET_ID =
'0x0000000000000000000000000000000000000000000000000000000000000000';
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
FuelWalletConnector,
FuelWalletDevelopmentConnector,
FueletWalletConnector,
EVMWalletConnector
EVMWalletConnector,
} from '@fuels/connectors';
import { FuelProvider } from '@fuels/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
Expand All @@ -11,15 +11,15 @@ import ReactDOM from 'react-dom/client';

import './index.css';
import App from './App';

const queryClient = new QueryClient();

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<QueryClientProvider client={queryClient}>
<QueryClientProvider client={queryClient}>
<FuelProvider
fuelConfig={{
connectors: [
Expand All @@ -34,4 +34,4 @@ root.render(
</FuelProvider>
</QueryClientProvider>
</React.StrictMode>
);
);

0 comments on commit f78ada6

Please sign in to comment.