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

Add support for delegates to delete transactions proposed by themselves #2294

Merged

Conversation

falvaradorodriguez
Copy link
Contributor

@falvaradorodriguez falvaradorodriguez commented Oct 29, 2024

@falvaradorodriguez falvaradorodriguez marked this pull request as ready for review October 29, 2024 15:54
@falvaradorodriguez falvaradorodriguez requested a review from a team as a code owner October 29, 2024 15:54
if safe_signature.owner == proposer:
return attrs
if (
multisig_tx.proposed_by_delegate
and safe_signature.owner == multisig_tx.proposed_by_delegate
Copy link
Member

Choose a reason for hiding this comment

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

IIRC safe_signature.owner involves computation. If you are using in multiple places please assign it to a variable first

Copy link
Contributor Author

@falvaradorodriguez falvaradorodriguez Oct 30, 2024

Choose a reason for hiding this comment

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

Makes sense. Fixed here

safe_transaction_service/history/views.py Outdated Show resolved Hide resolved
safe_transaction_service/history/views.py Outdated Show resolved Hide resolved
@falvaradorodriguez falvaradorodriguez force-pushed the allow_delegates_to_delete_proposed_transactions branch from 3b80d15 to 11aae70 Compare October 30, 2024 12:36
@falvaradorodriguez falvaradorodriguez merged commit dd6f8ab into main Oct 30, 2024
5 checks passed
@falvaradorodriguez falvaradorodriguez deleted the allow_delegates_to_delete_proposed_transactions branch October 30, 2024 13:09
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Proposal Delete from Delegate that created it
2 participants