Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Refactor: overwrite the queue instead of merging + use txId for deep …
Browse files Browse the repository at this point in the history
…links (#3751)

* Refactor: overwrite the queue instead of merging

* Fix: when only "next" txns are in queue

* Update tests

* PR comments (thanks Aaron)

* Search for a specific Queued label instead of last label

* More PR comments

* Fix: never add singular txns to History

* Display pending txns as history

* Use tx id for deep links

* Cache fetchTxDetails

* Move fallback to hook
  • Loading branch information
katspaugh committed Apr 5, 2022
1 parent 5fb1540 commit 8e4d2a0
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 765 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"@gnosis.pm/safe-core-sdk": "^2.0.0",
"@gnosis.pm/safe-deployments": "^1.8.0",
"@gnosis.pm/safe-react-components": "^1.1.2",
"@gnosis.pm/safe-react-gateway-sdk": "^2.10.1",
"@gnosis.pm/safe-react-gateway-sdk": "^2.10.2",
"@gnosis.pm/safe-web3-lib": "^1.0.0",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/logic/safe/store/actions/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const navigateToTx = (safeAddress: string, txDetails: TransactionDetails)
const prefixedSafeAddress = getPrefixedSafeAddressSlug({ shortName: extractShortChainName(), safeAddress })
const txRoute = generatePath(SAFE_ROUTES.TRANSACTIONS_SINGULAR, {
[SAFE_ADDRESS_SLUG]: prefixedSafeAddress,
[TRANSACTION_ID_SLUG]: txDetails.detailedExecutionInfo.safeTxHash,
[TRANSACTION_ID_SLUG]: txDetails.txId,
})

history.push(txRoute)
Expand Down
Loading

0 comments on commit 8e4d2a0

Please sign in to comment.