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

Rename memo to note inside CLI #9134

Merged
merged 8 commits into from
May 4, 2021
Merged

Rename memo to note inside CLI #9134

merged 8 commits into from
May 4, 2021

Conversation

anilcse
Copy link
Collaborator

@anilcse anilcse commented Apr 17, 2021

Description

ref: #9122


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Apr 17, 2021

Codecov Report

Merging #9134 (f82780c) into master (3e6c4a6) will decrease coverage by 0.07%.
The diff coverage is 33.33%.

❗ Current head f82780c differs from pull request most recent head e5a4ef5. Consider uploading reports for the commit e5a4ef5 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9134      +/-   ##
==========================================
- Coverage   60.13%   60.06%   -0.08%     
==========================================
  Files         595      595              
  Lines       37192    37355     +163     
==========================================
+ Hits        22367    22437      +70     
- Misses      12846    12929      +83     
- Partials     1979     1989      +10     
Impacted Files Coverage Δ
client/flags/flags.go 22.22% <0.00%> (ø)
client/tx/factory.go 28.20% <0.00%> (ø)
x/auth/client/testutil/suite.go 95.41% <100.00%> (+0.09%) ⬆️
x/bank/client/testutil/cli_helpers.go 8.10% <0.00%> (-41.90%) ⬇️
types/codec.go 50.00% <0.00%> (-16.67%) ⬇️
store/internal/proofs/create.go 67.56% <0.00%> (-13.83%) ⬇️
x/gov/client/utils/query.go 25.72% <0.00%> (-2.44%) ⬇️
x/auth/legacy/legacytx/stdtx_builder.go 56.00% <0.00%> (-1.58%) ⬇️
server/rosetta/converter.go 54.44% <0.00%> (-1.52%) ⬇️
x/staking/client/rest/query.go 40.66% <0.00%> (-1.21%) ⬇️
... and 33 more

@tac0turtle
Copy link
Member

@anilcse what is the status with this pr?

@atheeshp atheeshp marked this pull request as ready for review April 30, 2021 10:11
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm

client/flags/flags.go Outdated Show resolved Hide resolved
Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

is this only a cli issue or also a rest issue?

should it be modified for baseReq?

Memo string `json:"memo"`

EDIT: should be fine. REST will be protected via client apps

@@ -59,6 +59,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* CLI: removed `--text` flag from `show-node-id` command; the text format for public keys is not used any more - instead we use ProtoJSON.
* (types) [\#9079](https://github.com/cosmos/cosmos-sdk/issues/9079) Add `AddAmount`/`SubAmount` methods to `sdk.Coin`.
* [\#8628](https://github.com/cosmos/cosmos-sdk/issues/8628) Commands no longer print outputs using `stderr` by default
* [\#9134](https://github.com/cosmos/cosmos-sdk/pull/9134) Renamed the CLI flag `--memo` to `--note`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this the only reference we have/need to change? I found many other references for Memo on the code other than the flag

Copy link
Collaborator

Choose a reason for hiding this comment

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

if not it's ok but I'm just confused by the title of the PR

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

I can't believe we need this PR... 🤦 Why anyone would put their mnemonic in the memo field is beyond me and clearly demonstrates they should not be using CLI tools targeted for power users.

@amaury1093
Copy link
Contributor

@atheeshp Could you fix the conflicts, and we merge this!

@amaury1093 amaury1093 changed the title Rename memo to note Rename memo to note inside CLI May 4, 2021
@amaury1093 amaury1093 added the A:automerge Automatically merge PR once all prerequisites pass. label May 4, 2021
@mergify mergify bot merged commit e3e89f5 into master May 4, 2021
@mergify mergify bot deleted the anil/rename_memo branch May 4, 2021 09:00
@amaury1093 amaury1093 mentioned this pull request May 4, 2021
4 tasks
@ryanchristo ryanchristo mentioned this pull request Jun 1, 2021
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:CLI C:x/auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants