Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed May 14, 2024
1 parent e45293c commit f9c4371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/nextjs/components/CreateBuildModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { EtherInput, InputBase } from "./scaffold-eth";
import { VoxelCoord } from "@latticexyz/utils";
import { parseEther, parseGwei } from "viem";
import { parseEther } from "viem";
import { useAccount, useWriteContract } from "wagmi";
import { useDeployedContractInfo, useTransactor } from "~~/hooks/scaffold-eth";
import { useTargetNetwork } from "~~/hooks/scaffold-eth/useTargetNetwork";
Expand Down Expand Up @@ -103,8 +103,6 @@ export const CreateBuildModal: React.FC<CreateBuildModalProps> = ({ closeModal }
writeContractAsync({
address: deployedContractData.address,
functionName: "create",
maxFeePerGas: parseGwei("0.01"),
maxPriorityFeePerGas: parseGwei("0.001"),
abi: deployedContractData?.abi,
args: [objectTypeIds, relativePositions, submitBuildPrice, buildName],
});
Expand Down
4 changes: 1 addition & 3 deletions packages/nextjs/components/SubmitBuildModal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { ListEntry } from "./Game";
import { VoxelCoord } from "@latticexyz/utils";
import { formatEther, parseGwei } from "viem";
import { formatEther } from "viem";
import { useAccount, useWriteContract } from "wagmi";
import { BigCopy } from "~~/app/debug/_components/contract";
import { useDeployedContractInfo, useTransactor } from "~~/hooks/scaffold-eth";
Expand Down Expand Up @@ -85,8 +85,6 @@ export const SubmitBuildModal: React.FC<CreateBuildModalProps> = ({ closeModal,
writeContractAsync({
address: deployedContractData?.address,
functionName: "submitBuilding",
maxFeePerGas: parseGwei("0.01"),
maxPriorityFeePerGas: parseGwei("0.001"),
abi: deployedContractData?.abi,
args: [build.id, baseWorldCoord ?? { x: 0, y: 0, z: 0 }],
value: build.price,
Expand Down

0 comments on commit f9c4371

Please sign in to comment.