Skip to content

Commit

Permalink
fix: register auth types in MakeEncodingConfig (#263)
Browse files Browse the repository at this point in the history
* register encoding auth types

* move fix to params package

* remove space

* gofmt
  • Loading branch information
rbajollari authored Aug 28, 2023
1 parent 0a07c15 commit a485941
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/params/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ package params
import (
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/types/module/testutil"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)

// MakeEncodingConfig creates an EncodingConfig for Amino-based tests.
func MakeEncodingConfig(modules ...module.AppModuleBasic) testutil.TestEncodingConfig {
return testutil.MakeTestEncodingConfig(modules...)
encCfg := testutil.MakeTestEncodingConfig(modules...)

// register auth type interfaces
authtypes.RegisterInterfaces(encCfg.InterfaceRegistry)

return encCfg
}

0 comments on commit a485941

Please sign in to comment.