Skip to content

Commit

Permalink
fixed bugs when build & Test / liveness-test in testnet.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TuSoict committed Oct 28, 2024
1 parent a7ad120 commit 6e3a28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/terrad/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"path/filepath"
"time"

govv2lunc1 "github.com/classic-terra/core/v3/custom/gov/types/v2lunc1"
tmconfig "github.com/cometbft/cometbft/config"
tmos "github.com/cometbft/cometbft/libs/os"
tmrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/types"
tmtime "github.com/cometbft/cometbft/types/time"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -309,7 +309,7 @@ func initGenFiles(
appGenState[banktypes.ModuleName] = clientCtx.Codec.MustMarshalJSON(&bankGenState)

// set gov in the genesis state
var govGenState govv1.GenesisState
var govGenState govv2lunc1.GenesisState
clientCtx.Codec.MustUnmarshalJSON(appGenState[govtypes.ModuleName], &govGenState)
votingPeriod := time.Minute * 3
govGenState.Params.VotingPeriod = &votingPeriod
Expand Down

0 comments on commit 6e3a28c

Please sign in to comment.