Co-authored-by: MalteHerrmann <42640438+MalteHerrmann@users.noreply.github.com> Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com> Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
16 lines
411 B
Go
16 lines
411 B
Go
package posthandler
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// HandlerOptions are the options required for constructing a default SDK PostHandler.
|
|
type HandlerOptions struct{}
|
|
|
|
// NewPostHandler returns an empty PostHandler chain.
|
|
func NewPostHandler(_ HandlerOptions) (sdk.PostHandler, error) {
|
|
postDecorators := []sdk.PostDecorator{}
|
|
|
|
return sdk.ChainPostDecorators(postDecorators...), nil
|
|
}
|