-
Notifications
You must be signed in to change notification settings - Fork 637
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 common getter and setter to message types #3604
Comments
Thanks for opening up the issue @mmsqe. A couple initial questions that come to mind:
|
@colin-axner Follow you questions:
|
Hey @mmsqe, I'm having trouble understanding the precompile ethermint/evm code snippet you've provided and what problem it is trying to solve. Is there an issue in ethermint which states the problem? From what I can tell the code is relying on a large switch statement which checks some byte prefix for specific cases(?) - this doesn't seem to lend itself well to a generic msg handling pattern. |
@mmsqe Is this issue still relevant? If yes, can you provide us more information so that we can understand better the problem? (see Damian's question above) |
@damiannolan @crodriguezvega sorry for the late reply, we come up with a generic way to handle, we could close this now. |
Summary
support generic unmarshal and exec msg server methods
Problem Definition
Currently it's hard to handle different message types with a generic approach. Since common methods to access attributes like
Signer
,ClientState
,ConsensusState
are missing, we can only manipulate with that message concrete type.Proposal
Add common exported methods to all message types to get attributes including
Signer
,ClientState
,ConsensusState
andMisbehaviour
, also methods to set those exceptSigner
. With these methods, it allows us to define common Interface and thus generics when handling these message types.For Admin Use
The text was updated successfully, but these errors were encountered: