diff --git a/components/contract-viewer/index.tsx b/components/contract-viewer/index.tsx
index e3a0a34..441a98c 100644
--- a/components/contract-viewer/index.tsx
+++ b/components/contract-viewer/index.tsx
@@ -1,10 +1,11 @@
"use client";
-import React from "react";
+import React, { useState } from "react";
import { useSearchParams } from "next/navigation";
import { useWallet } from "@/data/wallet";
import { ContractView } from "aelf-smartcontract-viewer";
import { useTheme } from "next-themes";
+import { Button } from "../ui/button";
const sideChainTestnetRpc = "https://tdvw-test-node.aelf.io";
@@ -13,20 +14,27 @@ const ContractViewer = ({ name }: { name: string }) => {
const wallet = useWallet();
const { resolvedTheme } = useTheme();
const contractViewerAddress = searchParams.get("contract-viewer-address");
+ const [key, setKey] = useState("0");
if (!contractViewerAddress || !wallet?.wallet) {
return;
}
return (
-