-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 proto compatible x/distribution tx cli #5941
Add proto compatible x/distribution tx cli #5941
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
Added a few commetns on style fixes. Please check
Looks great @sahith-narahari, thanks! Just a few minor bits of feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing. Thanks @sahith-narahari!
@sahith-narahari mind updating the branch one last time? 🙏 It's out-of-date |
@fedekunze updated |
txf := tx.NewFactoryFromCLI(inBuf). | ||
WithTxGenerator(txg). | ||
WithAccountRetriever(ar) | ||
cliCtx := context.NewCLIContextWithInputAndFrom(inBuf, args[0]).WithMarshaler(m) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be NewCLIContextWithInput
as args[0]
actually doesn't point to anything - this will probably cause an out of bounds panic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review @aaronc, I see there's same issue in multiple modules. I addressed them all in a seperate PR
Reference: #5864
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)