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

refactor(l2): add -w flag to cmds that send txs #1036

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

ilitteri
Copy link
Contributor

Motivation

Nowadays, all the commands that send transactions do not wait for transaction receipts. If you run the same command multiple times the same transaction with the same nonce is going to be sent to the node; another problem is that the users have to perform additional steps to make sure that their transaction was finalized or not.

As this is not an implementation problem but a misuse of the CLI, it'd be good for users to also have the option to wait for their transactions to be finalized.

Description

Adds a -w flag to the cmds deploy, transfer, send, deposit, withdraw, and claim-withdraw which when set, waits for the transaction sent to be finalized (a.k.a. wait for its receipt).

@ilitteri ilitteri self-assigned this Oct 31, 2024
@ilitteri ilitteri requested a review from a team as a code owner October 31, 2024 15:23
Copy link
Contributor

@fborello-lambda fborello-lambda left a comment

Choose a reason for hiding this comment

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

LGTM

@fborello-lambda fborello-lambda added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit acad2ee Oct 31, 2024
11 checks passed
@fborello-lambda fborello-lambda deleted the refactor_l2_cli_wallet_cmd branch October 31, 2024 16:22
h3lio5 pushed a commit to h3lio5/lambda_ethereum_rust that referenced this pull request Oct 31, 2024
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->

Nowadays, all the commands that send transactions do not wait for
transaction receipts. If you run the same command multiple times the
same transaction with the same nonce is going to be sent to the node;
another problem is that the users have to perform additional steps to
make sure that their transaction was finalized or not.

As this is not an implementation problem but a misuse of the CLI, it'd
be good for users to also have the option to wait for their transactions
to be finalized.

**Description**

Adds a `-w` flag to the cmds `deploy`, `transfer`, `send`, `deposit`,
`withdraw`, and `claim-withdraw` which when set, waits for the
transaction sent to be finalized (a.k.a. wait for its receipt).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants