Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow deletion of delegate transactions from the queue [SW-297] #4400

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/components/transactions/TxDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,13 @@ const TxDetailsBlock = ({ txSummary, txDetails }: TxDetailsProps): ReactElement
const isUnsigned =
isMultisigExecutionInfo(txSummary.executionInfo) && txSummary.executionInfo.confirmationsSubmitted === 0

const isUntrusted =
const isTxFromProposer =
isMultisigDetailedExecutionInfo(txDetails.detailedExecutionInfo) &&
txDetails.detailedExecutionInfo.trusted === false
txDetails.detailedExecutionInfo.trusted &&
isUnsigned

const isUntrusted =
isMultisigDetailedExecutionInfo(txDetails.detailedExecutionInfo) && !txDetails.detailedExecutionInfo.trusted

// If we have no token list we always trust the transfer
const isTrustedTransfer = !hasDefaultTokenlist || isTrustedTx(txSummary)
Expand Down Expand Up @@ -117,7 +121,7 @@ const TxDetailsBlock = ({ txSummary, txDetails }: TxDetailsProps): ReactElement
</div>

{/* Signers */}
{!isUnsigned && (
{(!isUnsigned || isTxFromProposer) && (
<div className={css.txSigners}>
<TxSigners txDetails={txDetails} txSummary={txSummary} />

Expand Down
Loading