Skip to content

Commit

Permalink
🌎 explorer url
Browse files Browse the repository at this point in the history
  • Loading branch information
nerderlyne committed Feb 20, 2024
1 parent 62ebd04 commit 1006ea4
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions ui/components/shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const Shell = () => {
addCommand({ chainId: chain?.id, user: name ?? address, command });
if (!client) throw new Error("No client available");
if (!address) throw new Error("No wallet connected");
if (!chain) throw new Error("No chain connected");

let value = 0n;

Expand Down Expand Up @@ -126,7 +127,18 @@ export const Shell = () => {
args: [IE_ADDRESS, maxUint256],
});

addLine(<p>Approve TX Hash: {approveTxHash}</p>);
addLine(
<p>
Approve TX Hash:{" "}
<a
href={`https://etherscan.io/tx/${approveTxHash}`}
target="_blank"
rel="noreferrer"
>
{approveTxHash}
</a>
</p>,
);

const allowanceReceipt = await client.waitForTransactionReceipt({
hash: approveTxHash,
Expand All @@ -145,7 +157,18 @@ export const Shell = () => {
args: [command],
});

addLine(<p>Command TX Hash: {commandTxHash}</p>);
addLine(
<p>
Command TX Hash:{" "}
<a
href={`https://etherscan.io/tx/${commandTxHash}`}
target="_blank"
rel="noreferrer"
>
{commandTxHash}
</a>
</p>,
);

const commandReceipt = await client.waitForTransactionReceipt({
hash: commandTxHash,
Expand Down

0 comments on commit 1006ea4

Please sign in to comment.