17 lines
508 B
Go
17 lines
508 B
Go
package simapp
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/simapp/params"
|
|
"github.com/cosmos/cosmos-sdk/std"
|
|
)
|
|
|
|
// MakeEncodingConfig creates an EncodingConfig for testing
|
|
func MakeEncodingConfig() params.EncodingConfig {
|
|
encodingConfig := params.MakeEncodingConfig()
|
|
std.RegisterCodec(encodingConfig.Amino)
|
|
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
|
|
ModuleBasics.RegisterCodec(encodingConfig.Amino)
|
|
ModuleBasics.RegisterInterfaces(encodingConfig.InterfaceRegistry)
|
|
return encodingConfig
|
|
}
|