Skip to content

Commit

Permalink
adapter new to
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo committed Jun 20, 2024
1 parent fe16820 commit 1c236d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/blobtx/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utils/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ethda = defineChain({
},
},
contracts: {
blobTo: { address: '0xD0d387145B497FF1992DF7b35DE4594991adf00B' },
blobTo: { address: '0x975ef84AE286F95a9F732C30267Bb50D103b4374' },
},
custom: {
bridgeUrl: 'https://bridge-testnet.ethda.io',
Expand Down

0 comments on commit 1c236d6

Please sign in to comment.