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 to remove not executed transactions #352

Merged
merged 9 commits into from
Feb 16, 2024

Conversation

moisses89
Copy link
Member

Close #306

  • Refactor hardware wallet manager sign eip712 message.

@moisses89 moisses89 marked this pull request as ready for review February 1, 2024 14:27
@moisses89 moisses89 requested a review from Uxio0 as a code owner February 1, 2024 14:27
@moisses89
Copy link
Member Author

moisses89 commented Feb 1, 2024

Tests are expected to fail because new version of safe-eth-py with safe-global/safe-eth-py#753 is needed

)
message_hash = eip712_encode_hash(eip712_message)
try:
safe_tx, _ = self.safe_tx_service.get_safe_transaction(safe_tx_hash)
Copy link
Member Author

@moisses89 moisses89 Feb 1, 2024

Choose a reason for hiding this comment

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

Add a warning and ask for confirmation if the transaction have all the required signatures and it is ready to execute.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe you can add this explanation as a comment

Copy link
Member Author

@moisses89 moisses89 Feb 15, 2024

Choose a reason for hiding this comment

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

@Uxio0 I'm thinking to add a yes or no question is this case to ensure that the user reads the message and he is aware that burn the nonce is the best option after this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added here 4cecd9c

README.md Outdated Show resolved Hide resolved
safe_cli/operators/hw_wallets/hw_wallet_manager.py Outdated Show resolved Hide resolved
safe_cli/operators/hw_wallets/hw_wallet_manager.py Outdated Show resolved Hide resolved
safe_cli/operators/safe_tx_service_operator.py Outdated Show resolved Hide resolved
)
message_hash = eip712_encode_hash(eip712_message)
try:
safe_tx, _ = self.safe_tx_service.get_safe_transaction(safe_tx_hash)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you can add this explanation as a comment

safe_cli/prompt_parser.py Outdated Show resolved Hide resolved
@moisses89 moisses89 requested a review from Uxio0 February 15, 2024 10:48
safe_cli/operators/safe_tx_service_operator.py Outdated Show resolved Hide resolved
safe_cli/operators/safe_tx_service_operator.py Outdated Show resolved Hide resolved
@coveralls
Copy link

Coverage Status

coverage: 95.137% (+0.05%) from 95.086%
when pulling 186045e on add_delete_transaction
into f21a55b on master.

@moisses89 moisses89 merged commit 0560d9d into master Feb 16, 2024
13 checks passed
@moisses89 moisses89 deleted the add_delete_transaction branch February 16, 2024 15:14
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 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.

Delete proposed not executed transactions
3 participants