Skip to content

Commit

Permalink
testing(api!): adding chain id to SetupTestingApp as required by ba…
Browse files Browse the repository at this point in the history
…seapp setup opts
  • Loading branch information
damiannolan authored Mar 14, 2023
1 parent 724d095 commit 1d977a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"strings"

"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"

Expand Down Expand Up @@ -180,6 +181,7 @@ func (endpoint *Endpoint) UpgradeChain() error {
}

// update chain
baseapp.SetChainID(newChainID)(endpoint.Chain.GetSimApp().GetBaseApp())
endpoint.Chain.ChainID = newChainID
endpoint.Chain.CurrentHeader.ChainID = newChainID
endpoint.Chain.NextBlock() // commit changes
Expand Down

0 comments on commit 1d977a7

Please sign in to comment.