From d898d0295525ec991569ad7c754b6fa2ebe670d4 Mon Sep 17 00:00:00 2001
From: lizhiyong <1679963578@qq.com>
Date: Fri, 19 Jan 2024 10:45:00 +0800
Subject: [PATCH] fix
---
app/blob-TX/page.tsx | 17 ++++++++++++++---
components/ALoading.tsx | 2 +-
components/Banner.tsx | 2 +-
components/FullModal.tsx | 6 +++---
components/Header.tsx | 4 +++-
5 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/app/blob-TX/page.tsx b/app/blob-TX/page.tsx
index 92bcdb6..d178716 100644
--- a/app/blob-TX/page.tsx
+++ b/app/blob-TX/page.tsx
@@ -121,6 +121,7 @@ const BlobTX = () => {
const onSendTx = async () => {
if (!walletClient || !transData) return
+ setLoading({ loading: true })
const blobs = [transData.text, transData.img]
const { commitments, proofs, versionHashs, encodeBlobs } = await getConvertOfZkg(blobs)
const [account] = await walletClient.getAddresses()
@@ -205,6 +206,7 @@ const BlobTX = () => {
})
.then((r) => r.json())
.catch((e) => console.error(e))
+ setLoading({ loading: false, success: true })
}
const onSwitchTo = () => {
@@ -232,7 +234,10 @@ const BlobTX = () => {
{address?.replace('••••', '.....')}
-
+
window.open('https://blobscan-devnet.ethda.io/blobs', '_blank')}
+ className=' cursor-pointer flex mr-10 mo:mr-0 gap-[13px] items-center'
+ >
History
@@ -253,6 +258,7 @@ const BlobTX = () => {
setInputText(e.target.value)}
className=' mt-2 input-Text mo:w-full w-[425px] md:w-[380px] h-[55px] '
/>
@@ -313,7 +319,7 @@ const BlobTX = () => {
- {transData && <>{JSON.stringify(ub8a2numa(selectedBlob ? transData.text : transData.img))}>}
+ {transData && transData.text && <>{JSON.stringify(ub8a2numa(selectedBlob ? transData.text : transData.img))}>}