Skip to content

Commit

Permalink
fix: transaction link
Browse files Browse the repository at this point in the history
  • Loading branch information
tower1229 committed Feb 6, 2024
1 parent 646a983 commit 4add617
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/pages/game/_components/GameOver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ export const GameOver = ({
prefix: "$",
hideLoading: true,
content: [
`Post game result to ${network}?`,
`Post game result to ${
network === "solana" ? "Solana" : "Arbitrum Sepolia"
}?`,
<>
{userSelect.current !== false && (
<button
Expand Down Expand Up @@ -319,7 +321,11 @@ export const GameOver = ({
},
{
prefix: ">",
content: [`Post verification to ${network}`],
content: [
`Post verification to ${
network === "solana" ? "Solana" : "Arbitrum Sepolia"
}`,
],
class: "text-success",
run: () => {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -575,7 +581,9 @@ export const GameOver = ({
className="rounded-none text-success btn btn-xs btn-ghost"
onClick={() =>
window.open(
`${Chain.blockExplorers.default.url}/tx/${transactionHash}`
network === "arbitrum-sepolia"
? `${Chain.blockExplorers.default.url}/tx/${transactionHash}`
: `https://solscan.io/tx/${transactionHash}?cluster=devnet`
)
}
>
Expand Down

0 comments on commit 4add617

Please sign in to comment.