Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Parthib <[email protected]>
  • Loading branch information
ptdatta committed Jan 26, 2024
1 parent 7c0c4c2 commit 26c2dd5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import { ethers } from "ethers";
import { toast } from "react-toastify";
import { DataContext } from "../context";

type ConversionData = {
_hex: string,
_isBigNumber: boolean,
}

const DataProvider = ({ children }: PropsWithChildren<{}>) => {
const address = useAddress();
const connect = useMetamask();
Expand Down Expand Up @@ -157,7 +162,7 @@ const DataProvider = ({ children }: PropsWithChildren<{}>) => {

const convert = async (value: number) => {
try {
const data = await getConversionRate({ args: [value] });
const data = (Object)(await getConversionRate({ args: [value] }));
const decimalValue:number = parseInt(data._hex, 16);
return decimalValue;
} catch (err) {
Expand Down

0 comments on commit 26c2dd5

Please sign in to comment.