Skip to content

Commit

Permalink
fix: tx selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Nov 9, 2023
1 parent a0a0563 commit 3132e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@bgd-labs/frontend-web3-utils",
"description": "Frontend utilities common to multiple Web3 projects",
"version": "0.4.51",
"version": "0.4.52",
"author": "BGD labs",
"license": "MIT",
"private": false,
Expand Down
3 changes: 2 additions & 1 deletion src/web3/store/transactionsSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const selectTxExplorerLink = <T extends BaseTx>(
state: ITransactionsState<T>,
getChainParameters: (chainId: number) => Chain,
txHash: string,
isWalletContract?: boolean,
) => {
const tx = selectTXByHash(state, txHash);
if (!tx) {
Expand All @@ -111,7 +112,7 @@ export const selectTxExplorerLink = <T extends BaseTx>(
[base.id]: 'https://app.safe.global/base:',
};

if (tx.walletType !== 'GnosisSafe') {
if (tx.walletType !== 'GnosisSafe' && !isWalletContract) {
return `${getChainParameters(tx.chainId).blockExplorers?.default
.url}/tx/${txHash}`;
} else {
Expand Down

0 comments on commit 3132e77

Please sign in to comment.