Skip to content

Commit

Permalink
fix: correct subscan link (#1378)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt authored Jun 29, 2023
1 parent 66db4d1 commit 0c40d3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/utils/constants/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const EXTERNAL_PAGES = Object.freeze({
SUBSCAN: {
BLOCKS: `${SUBSCAN_LINK}/block`,
BLOCK: `${SUBSCAN_LINK}/block/:${EXTERNAL_URL_PARAMETERS.SUBSCAN.BLOCK.HASH}`,
EXTRINSIC: `${SUBSCAN_LINK}/extrinsic/:${EXTERNAL_URL_PARAMETERS.SUBSCAN.BLOCK.HASH}`,
ACCOUNT: `${SUBSCAN_LINK}/account/:${EXTERNAL_URL_PARAMETERS.SUBSCAN.ACCOUNT.ADDRESS}`
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const useTransactionNotifications = ({

const url =
data?.txHash &&
EXTERNAL_PAGES.SUBSCAN.BLOCK.replace(`:${EXTERNAL_URL_PARAMETERS.SUBSCAN.BLOCK.HASH}`, data.txHash.toString());
EXTERNAL_PAGES.SUBSCAN.EXTRINSIC.replace(
`:${EXTERNAL_URL_PARAMETERS.SUBSCAN.BLOCK.HASH}`,
data.txHash.toString()
);

const description = getTransactionDescription(variables, status, t);

Expand Down

2 comments on commit 0c40d3e

@vercel
Copy link

@vercel vercel bot commented on 0c40d3e Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0c40d3e Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.