mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
2b123bf007
* add eip712 ante * minor cleanup * eip712 integration test with bridge conversion * fix issues * update bridge module * merge bridge module convert logic * update eip712 tests & update deps * remove v17 migrations * remove v17 migrations * fix genesis test * fix erc20 to coin tx * remove eth check * clean up imports * remove * fix evmutil cli * remove bridge comments * address feedback * rename mint method * add transfer checks for locking & unlocking funds * fix gas * increase gas even more * fix amount check Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com> Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
38 lines
795 B
Go
38 lines
795 B
Go
package keeper_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/suite"
|
|
|
|
"github.com/kava-labs/kava/x/evmutil/keeper"
|
|
"github.com/kava-labs/kava/x/evmutil/testutil"
|
|
"github.com/kava-labs/kava/x/evmutil/types"
|
|
)
|
|
|
|
type GrpcQueryTestSuite struct {
|
|
testutil.Suite
|
|
|
|
msgServer types.MsgServer
|
|
}
|
|
|
|
func (suite *GrpcQueryTestSuite) SetupTest() {
|
|
suite.Suite.SetupTest()
|
|
suite.msgServer = keeper.NewMsgServerImpl(suite.App.GetEvmutilKeeper())
|
|
}
|
|
|
|
func TestGrpcQueryTestSuite(t *testing.T) {
|
|
suite.Run(t, new(GrpcQueryTestSuite))
|
|
}
|
|
|
|
func (suite *GrpcQueryTestSuite) TestQueryParams() {
|
|
params, err := suite.QueryClient.Params(
|
|
context.Background(),
|
|
&types.QueryParamsRequest{},
|
|
)
|
|
suite.Require().NoError(err)
|
|
|
|
suite.Require().Len(params.Params.EnabledConversionPairs, 1)
|
|
}
|