set address prefixes for tests

This commit is contained in:
rhuairahrighairigh 2019-10-04 13:44:28 -04:00
parent bbf42c7c29
commit 6f1cdeb336

View File

@ -58,8 +58,18 @@ const (
OpWeightMsgUnjail = "op_weight_msg_unjail"
)
func init() {
// TestMain runs setup and teardown code before all tests.
func TestMain(m *testing.M) {
// set prefixes
config := sdk.GetConfig()
SetBech32AddressPrefixes(config)
config.Seal()
// load the values from simulation specific flags
simapp.GetSimulatorFlags()
// run tests
exitCode := m.Run()
os.Exit(exitCode)
}
func testAndRunTxs(app *App, config simulation.Config) []simulation.WeightedOperation {