We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Refactor tx decoding logic as a TxDecoderMiddleware. ref: #10484 (comment)
With the BaseApp middleware refactor (#9996), BaseApp should be as slim as possible.
Currently, BaseApp still does tx decoding (see its private txDecoder field). We can move this logic into a middleware
txDecoder
Create a TxDecoderMiddleware. It will:
tx.Request.Tx
tx.Request.TxBytes
TxBytes
Pros:
Cons:
The text was updated successfully, but these errors were encountered:
amaury1093
Successfully merging a pull request may close this issue.
Summary
Refactor tx decoding logic as a TxDecoderMiddleware. ref: #10484 (comment)
Problem Definition
With the BaseApp middleware refactor (#9996), BaseApp should be as slim as possible.
Currently, BaseApp still does tx decoding (see its private
txDecoder
field). We can move this logic into a middlewareProposal
Create a TxDecoderMiddleware. It will:
tx.Request.Tx
andtx.Request.TxBytes
are set. If both are empty, error. If Txx is empty, then decode from TxBytes.TxBytes
set, so the middleware will decode.Pros:
Cons:
For Admin Use
The text was updated successfully, but these errors were encountered: