feat: let sign-batch read multiple files#13454
Conversation
| if appendMessagesToSingleMsg { | ||
| // It will combine all tx msgs and create single signed transaction | ||
| appendMessagesToSingleTx, _ := cmd.Flags().GetBool(flagAppend) | ||
| // Combines all tx msgs and create single signed transaction |
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
|
|
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
--appendtoo.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.mdReviewers 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