-
Notifications
You must be signed in to change notification settings - Fork 586
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
fix(statemachine)!: re-implement legacy msg interface #3907
Conversation
func (msg MsgPayPacketFee) Route() string { | ||
return RouterKey | ||
} | ||
|
||
// GetSignBytes implements sdk.Msg. | ||
// GetSignBytes implements legacytx.LegacyMsg |
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.
This docstring can remain sdk.Msg I believe?
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.
I changed it because it looks like GetSignBytes
is not part of the sdk.Msg
interface, but of the LegacyMsg
interface instead...
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.
either works for me, it will be removed post eden I guess
Is this going to require a change to the ledger software, so that it can sign protos? |
I'm unsure on this, it may be supported by |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3907 +/- ##
==========================================
- Coverage 78.88% 78.84% -0.04%
==========================================
Files 187 187
Lines 12944 12950 +6
==========================================
Hits 10211 10211
- Misses 2305 2311 +6
Partials 428 428
|
ledger support of sign mode textual is released and audited. We are just waiting for it to be included into ledger live |
(cherry picked from commit f2b2249) # Conflicts: # modules/apps/29-fee/types/msgs.go # modules/apps/transfer/types/msgs.go
#3938) * fix(statemachine)!: re-implement legacy msg interface (#3907) (cherry picked from commit f2b2249) # Conflicts: # modules/apps/29-fee/types/msgs.go # modules/apps/transfer/types/msgs.go * resolving backport conflicts --------- Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Damian Nolan <damiannolan@gmail.com>
Description
Removing the
Type()
function implementation in this PR broke transaction signing with ledger. This PR adds it back together with some extra type checking to make sure types implement the necessary interfaces. I will open a follow up issue to remove the implementation ofLegacyMsg
interface when we upgrade to SDK v0.50.x.closes: #XXXX
Commit Message / Changelog Entry
fix(statemachine)!: re-implement legacy msg interface
see the guidelines for commit messages. (view raw markdown for examples)
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.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.