Skip to content

Commit

Permalink
update e2e genesis config for protorev module (#5312)
Browse files Browse the repository at this point in the history
(cherry picked from commit d606177)
  • Loading branch information
NotJeremyLiu authored and mergify[bot] committed May 25, 2023
1 parent 4ccc556 commit 28ff0a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/e2e/initialization/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
minttypes "github.com/osmosis-labs/osmosis/v15/x/mint/types"
poolitypes "github.com/osmosis-labs/osmosis/v15/x/pool-incentives/types"
poolmanagertypes "github.com/osmosis-labs/osmosis/v15/x/poolmanager/types"
protorevtypes "github.com/osmosis-labs/osmosis/v15/x/protorev/types"
twaptypes "github.com/osmosis-labs/osmosis/v15/x/twap/types"
txfeestypes "github.com/osmosis-labs/osmosis/v15/x/txfees/types"

Expand Down Expand Up @@ -298,6 +299,11 @@ func initGenesis(chain *internalChain, votingPeriod, expeditedVotingPeriod time.
return err
}

err = updateModuleGenesis(appGenState, protorevtypes.ModuleName, &protorevtypes.GenesisState{}, updateProtorevGenesis)
if err != nil {
return err
}

bz, err := json.MarshalIndent(appGenState, "", " ")
if err != nil {
return err
Expand Down Expand Up @@ -540,6 +546,10 @@ func updateGenUtilGenesis(c *internalChain) func(*genutiltypes.GenesisState) {
}
}

func updateProtorevGenesis(protorevGenState *protorevtypes.GenesisState) {
protorevGenState.DeveloperAddress = "osmo1qs9akhf0s05hqskmu9gdnzz3e6u4xc7aaya0u0"
}

func setDenomMetadata(genState *banktypes.GenesisState, denom string) {
genState.DenomMetadata = append(genState.DenomMetadata, banktypes.Metadata{
Description: fmt.Sprintf("Registered denom %s for e2e testing", denom),
Expand Down

0 comments on commit 28ff0a4

Please sign in to comment.