diff --git a/frontend/src/components/modals/PlantModal.tsx b/frontend/src/components/modals/PlantModal.tsx
index de47dc5..92cbd78 100644
--- a/frontend/src/components/modals/PlantModal.tsx
+++ b/frontend/src/components/modals/PlantModal.tsx
@@ -37,7 +37,6 @@ export default function PlantModal({
.plant_seed_at_index(seedType, tileArray[0])
.call();
-
updatePageNum();
setStatus('none');
} catch (err) {
diff --git a/frontend/src/components/modals/SellItem.tsx b/frontend/src/components/modals/SellItem.tsx
index 64330cd..ff2628d 100644
--- a/frontend/src/components/modals/SellItem.tsx
+++ b/frontend/src/components/modals/SellItem.tsx
@@ -30,9 +30,7 @@ export default function SellItem({
const realAmount = items / 1_000_000_000;
const inputAmount = bn.parseUnits(realAmount.toFixed(9).toString());
const seedType: FoodTypeInput = FoodTypeInput.Tomatoes;
- await contract.functions
- .sell_item(seedType, inputAmount)
- .call();
+ await contract.functions.sell_item(seedType, inputAmount).call();
updatePageNum();
setStatus('none');
} catch (err) {
diff --git a/frontend/src/components/show/Info.tsx b/frontend/src/components/show/Info.tsx
index 78764ca..5a2496e 100644
--- a/frontend/src/components/show/Info.tsx
+++ b/frontend/src/components/show/Info.tsx
@@ -26,7 +26,7 @@ export default function Info({
updateNum,
seeds,
items,
- farmCoinAssetID
+ farmCoinAssetID,
}: InfoProps) {
return (
diff --git a/frontend/src/components/show/ShowCoins.tsx b/frontend/src/components/show/ShowCoins.tsx
index 105cadb..be51592 100644
--- a/frontend/src/components/show/ShowCoins.tsx
+++ b/frontend/src/components/show/ShowCoins.tsx
@@ -12,7 +12,11 @@ interface ShowCoinsProps {
farmCoinAssetID: BytesLike;
}
-export default function ShowCoins({ updateNum, contract, farmCoinAssetID }: ShowCoinsProps) {
+export default function ShowCoins({
+ updateNum,
+ contract,
+ farmCoinAssetID,
+}: ShowCoinsProps) {
const { wallet } = useWallet();
const [balance, setBalance] = useState();
diff --git a/frontend/src/components/show/ShowPlayerInfo.tsx b/frontend/src/components/show/ShowPlayerInfo.tsx
index 37af49e..77fbee0 100644
--- a/frontend/src/components/show/ShowPlayerInfo.tsx
+++ b/frontend/src/components/show/ShowPlayerInfo.tsx
@@ -20,7 +20,7 @@ export default function ShowPlayerInfo({
player,
contract,
updateNum,
- farmCoinAssetID
+ farmCoinAssetID,
}: PlayerProps) {
let valSold;
if (player !== null) {
@@ -31,7 +31,11 @@ export default function ShowPlayerInfo({
Value Sold: {valSold ?? '0'}
-
+
);
diff --git a/frontend/src/constants.ts b/frontend/src/constants.ts
index ddd595b..d8378b0 100644
--- a/frontend/src/constants.ts
+++ b/frontend/src/constants.ts
@@ -6,21 +6,21 @@ import { Vector3 } from 'three';
export const FUEL_PROVIDER_URL = 'https://testnet.fuel.network/v1/graphql';
-export const TESTNET_FAUCET_URL = 'https://faucet-testnet.fuel.network/'
+export const TESTNET_FAUCET_URL = 'https://faucet-testnet.fuel.network/';
-// export const VERCEL_ENV =
+// export const VERCEL_ENV =
// // process.env.REACT_APP_VERCEL_ENV || process.env.NODE_ENV || 'development';
export const CONTRACT_ID =
// VERCEL_ENV === 'development'
- // ? contractIds.contract
- // :
- '0xf5b08689ada97df7fd2fbd67bee7dea6d219f117c1dc9345245da16fe4e99111';
+ // ? contractIds.contract
+ // :
+ '0xf5b08689ada97df7fd2fbd67bee7dea6d219f117c1dc9345245da16fe4e99111';
-export const FARM_COIN_ASSET_ID =
-// VERCEL_ENV === 'development'
-// ? null :
- "0x2a0d0ed9d2217ec7f32dcd9a1902ce2a66d68437aeff84e3a3cc8bebee0d2eea";
+export const FARM_COIN_ASSET_ID =
+ // VERCEL_ENV === 'development'
+ // ? null :
+ '0x2a0d0ed9d2217ec7f32dcd9a1902ce2a66d68437aeff84e3a3cc8bebee0d2eea';
export const FARM_COIN_NETWORK_ASSET = {
/** type of network */
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx
index 02e4ca3..95646b6 100644
--- a/frontend/src/index.tsx
+++ b/frontend/src/index.tsx
@@ -1,6 +1,6 @@
import {
// defaultConnectors,
- FuelWalletDevelopmentConnector
+ FuelWalletDevelopmentConnector,
} from '@fuels/connectors';
import { FuelProvider } from '@fuels/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
@@ -21,9 +21,7 @@ root.render(
From 84a5d0d808bb2d036f3f58eaa919290abfd2d277 Mon Sep 17 00:00:00 2001
From: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com>
Date: Wed, 29 May 2024 10:58:35 -0600
Subject: [PATCH 15/16] update connectors
---
frontend/src/index.tsx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx
index 95646b6..df65fde 100644
--- a/frontend/src/index.tsx
+++ b/frontend/src/index.tsx
@@ -1,6 +1,5 @@
import {
- // defaultConnectors,
- FuelWalletDevelopmentConnector,
+ defaultConnectors,
} from '@fuels/connectors';
import { FuelProvider } from '@fuels/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
@@ -20,8 +19,7 @@ root.render(
From 14496005c82705f4f0ec4abef3e4631afc67e151 Mon Sep 17 00:00:00 2001
From: sarahschwartz <58856580+sarahschwartz@users.noreply.github.com>
Date: Wed, 29 May 2024 11:25:07 -0600
Subject: [PATCH 16/16] lint
---
frontend/src/index.tsx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx
index df65fde..0f4ecd9 100644
--- a/frontend/src/index.tsx
+++ b/frontend/src/index.tsx
@@ -1,6 +1,4 @@
-import {
- defaultConnectors,
-} from '@fuels/connectors';
+import { defaultConnectors } from '@fuels/connectors';
import { FuelProvider } from '@fuels/react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import React from 'react';