Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gianalarcon committed Aug 11, 2024
1 parent b0e3ae5 commit cdc5b97
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/nextjs/components/stake/StakeContractInteraction.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { useAccount, useBalance } from "@starknet-react/core";
import { useAccount } from "@starknet-react/core";
import { useDeployedContractInfo } from "~~/hooks/scaffold-stark";
import { useTargetNetwork } from "~~/hooks/scaffold-stark/useTargetNetwork";
import { useScaffoldReadContract } from "~~/hooks/scaffold-stark/useScaffoldReadContract";
Expand All @@ -20,15 +20,12 @@ export const StakeContractInteraction = ({ address }: { address?: string }) => {
const { address: connectedAddress } = useAccount();
const { data: StakerContract } = useDeployedContractInfo("Staker");

console.log("StakerContract", StakerContract);
const { data: ExampleExternalContact } = useDeployedContractInfo(
"ExampleExternalContract",
);
const { value: stakerContractBalance} =
useScaffoldEthBalance({
address: StakerContract?.address,
});
console.log("stakerContractBalance", stakerContractBalance);
const { value: stakerContractBalance } = useScaffoldEthBalance({
address: StakerContract?.address,
});
const {
value: exampleExternalContractBalance,
//refetch: refetchExampleExternalContract,
Expand Down Expand Up @@ -111,8 +108,9 @@ export const StakeContractInteraction = ({ address }: { address?: string }) => {
<div className="flex items-center">
<ETHToPrice
value={
exampleExternalContractBalance != null ?
`${formatEther(Number(exampleExternalContractBalance))}${targetNetwork.nativeCurrency.symbol}` : undefined
exampleExternalContractBalance != null
? `${formatEther(Number(exampleExternalContractBalance))}${targetNetwork.nativeCurrency.symbol}`
: undefined
}
className="text-[1rem]"
/>
Expand Down

0 comments on commit cdc5b97

Please sign in to comment.