Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Add async option for send-tx command #1532

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

k06a
Copy link
Contributor

@k06a k06a commented Apr 30, 2020

Resolves #1531

@@ -31,3 +31,7 @@ program.Command.prototype.withNonInteractiveOption = function(): Command {
program.Command.prototype.withSkipCompileOption = function(): Command {
return this.option('--skip-compile', 'skips contract compilation');
};

program.Command.prototype.withAsyncOption = function(): Command {
return this.option('--async-tx', 'avoid waiting for tx gets mined');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return this.option('--async-tx', 'avoid waiting for tx gets mined');
return this.option('--async-tx', 'do not wait for the transaction to be mined');

@spalladino spalladino self-assigned this May 4, 2020
Copy link
Contributor

@spalladino spalladino left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @k06a! I'd expect the async-tx option to await for the tx to be sent, if not mined. Removing the await altogether could mean that any errors in sending the tx may be lost, since the CLI does not wait for the HTTP request to the node to return. Also, the CLI should show the tx hash in the console, so the user can follow up on it.

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.

We need async option for send-tx command
2 participants