-
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
feat: let sign-batch
read multiple files
#13454
Conversation
appendMessagesToSingleMsg, _ := cmd.Flags().GetBool(flagAppend) | ||
if appendMessagesToSingleMsg { | ||
// It will combine all tx msgs and create single signed transaction | ||
appendMessagesToSingleTx, _ := cmd.Flags().GetBool(flagAppend) |
Check warning
Code scanning / gosec
Returned error is not propagated up the stack.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #13454 +/- ##
==========================================
- Coverage 54.47% 54.00% -0.48%
==========================================
Files 676 648 -28
Lines 57952 55429 -2523
==========================================
- Hits 31570 29934 -1636
+ Misses 23735 23094 -641
+ Partials 2647 2401 -246
|
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 👏
The how can I broadcast the combine singed_batch file? Note: |
Hey @ChienDuong, can you open an issue about it? |
Let me clarify it @julienrbrt . If it can not be solved quickly I will open an issue. Generate a transaction, then Now I try:
I found that the structure of the signed files between
|
@julienrbrt this doesn't sound right. Both should return/write a single JSON object with 1 or more messages and 1 or more signatures. |
Which version are you using? @ChienDuong I'd rather move that to an issue tbh. Which specify the sdk version and steps to reproduce. |
More detail
I am using Cosmos SDK v0.46.x @julienrbrt |
Okay, can you reproduce building from main? |
Is there any way that I can DM you? @julienrbrt |
You can on discord julienrbrt#0001, but I am still advocating that you should open an issue (as you have this problem in 0.46 anyway) |
Many thanks @julienrbrt
I just send you a friend request on discord. It is a bit complicated, thus
I would like to DM you . I believe it will be real quick.
…On Wed, 19 Oct 2022 at 23:57 Julien Robert ***@***.***> wrote:
Is there any way that I can DM you? @julienrbrt
<https://github.com/julienrbrt>
You can on discord julienrbrt#0001, but I am still advocating that you
should open an issue (as you have this problem in 0.46 anyway)
—
Reply to this email directly, view it on GitHub
<#13454 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3KD4FUGOOCXFIXKUJGURLWEAR7HANCNFSM6AAAAAAQ56B3J4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Description
With this change, the command behaves identically when given multiple files or passed one file containing multiples transactions. Works with
--append
too.I believe it closes: #13066 without adding an extra command.
Refactored duplicated code too to improve readability.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change