diff --git a/app/blobtx/page.tsx b/app/blobtx/page.tsx index 9d52e64..2f066d2 100644 --- a/app/blobtx/page.tsx +++ b/app/blobtx/page.tsx @@ -226,8 +226,7 @@ const BlobTX = () => { }) .then((r) => r.json()) .catch((e) => console.error(e)) - .finally(() => setLoading({ loading: false, success: false, error: true })) - if (data.result && 'status' in data.result && data.result.status === '0x1') { + if (data?.result && 'status' in data.result && data.result.status === '0x1') { setLoading({ loading: false, success: true, error: false }) return data } else { @@ -286,7 +285,7 @@ const BlobTX = () => { }) console.info('tx:', request.gas, request.gasPrice, request.maxPriorityFeePerGas) - const res = await walletClient?.signTransaction(request) + const res = await walletClient.signTransaction(request) const hexSig = (res.startsWith('0x') ? res : `0x${res}`) as `0x${string}` const transaction = parseTransaction(hexSig) if (!transaction) return diff --git a/utils/wagmi.ts b/utils/wagmi.ts index d578b9f..e3c3599 100644 --- a/utils/wagmi.ts +++ b/utils/wagmi.ts @@ -28,7 +28,7 @@ export const ethda = defineChain({ }, }, contracts: { - blobTo: { address: '0xD0d387145B497FF1992DF7b35DE4594991adf00B' }, + blobTo: { address: '0x975ef84AE286F95a9F732C30267Bb50D103b4374' }, }, custom: { bridgeUrl: 'https://bridge-testnet.ethda.io',