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

Unify txFilename and outFilename vars usage in goal #1179

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

algorandskiy
Copy link
Contributor

@algorandskiy algorandskiy commented Jun 16, 2020

Summary

txFilename and outFilename variables in goal now are used consistently,
one for reading and another for writing out.

Test Plan

Rely on existing expect tests :
goal clerk send: test/e2e-go/cli/goal/expect/limitOrderTest.exp
goal asset * : test/e2e-go/cli/goal/expect/limitOrderTest.exp
goal clerk multisign merge: no current tests cover this change. Will open a ticket for creating these tests.

Background

applications branch introduces a new common function for providing -o,--fee and so on common args. This PR fixes vars usage in existing code.

Copy link
Contributor

@tsachiherman tsachiherman left a comment

Choose a reason for hiding this comment

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

The change looks ok, but I cannot confirm that it would work, just by reviewing it.
Could you please add to the PR description the names of the expect tests that covers each of the changed commands ?
( i.e. in this change, I cannot rely on the compiler to tell me that it's not-used variable, or not-defined variable. nor can I see that the outFilename isn't used in a different location )

@algorandskiy
Copy link
Contributor Author

goal clerk send: test/e2e-go/cli/goal/expect/limitOrderTest.exp
some goal asset subcommands : test/e2e-go/cli/goal/expect/limitOrderTest.exp
goal clerk multisign merge: no tests.

The change is simple - txFilename is now used only in clerk subcommand:
multisig add where it is essential part of the behavior
rawsend, sign, group, dryrun where it is input parameter, and outFilename is explicit output parameter.

@tsachiherman tsachiherman merged commit 0b3c3ab into algorand:master Jun 18, 2020
@algorandskiy algorandskiy deleted the pavel/goal branch July 23, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants