fix test compilation

This commit is contained in:
Federico Kunze
2021-04-21 15:41:30 +02:00
parent 4d849a6241
commit 374d249116
8 changed files with 47 additions and 66 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ type EvmTestSuite struct {
ctx sdk.Context
handler sdk.Handler
app *app.InjectiveApp
app *app.EthermintApp
codec codec.BinaryMarshaler
privKey *ethsecp256k1.PrivKey
@@ -45,7 +45,7 @@ func (suite *EvmTestSuite) SetupTest() {
checkTx := false
suite.app = app.Setup(checkTx)
suite.ctx = suite.app.BaseApp.NewContext(checkTx, tmproto.Header{Height: 1, ChainID: "888", Time: time.Now().UTC()})
suite.ctx = suite.app.BaseApp.NewContext(checkTx, tmproto.Header{Height: 1, ChainID: "ethermint-888", Time: time.Now().UTC()})
suite.handler = evm.NewHandler(suite.app.EvmKeeper)
suite.codec = suite.app.AppCodec()
+1 -1
View File
@@ -33,7 +33,7 @@ type KeeperTestSuite struct {
ctx sdk.Context
querier sdk.Querier
app *app.InjectiveApp
app *app.EthermintApp
address ethcmn.Address
}
+1 -1
View File
@@ -126,7 +126,7 @@ func (suite *StateDBTestSuite) TestTransitionDb() {
"nil gas price",
func() {
invalidGas := sdk.DecCoins{
{Denom: ethermint.PhotonCoin},
{Denom: ethermint.AttoPhoton},
}
suite.ctx = suite.ctx.WithMinGasPrices(invalidGas)
},
+1 -1
View File
@@ -26,7 +26,7 @@ type StateDBTestSuite struct {
suite.Suite
ctx sdk.Context
app *app.InjectiveApp
app *app.EthermintApp
stateDB *types.CommitStateDB
address ethcmn.Address
stateObject types.StateObject