clean code
Some checks are pending
Continuous Integration (Commit) / lint (push) Waiting to run

This commit is contained in:
0g-wh 2024-08-02 19:32:45 +08:00
parent 966420cc90
commit a58ed51deb
5 changed files with 5 additions and 10 deletions

View File

@ -11,9 +11,7 @@ import (
)
func main() {
fmt.Println("main")
chaincfg.SetSDKConfig().Seal()
fmt.Println("main2")
rootCmd := NewRootCmd()
if err := svrcmd.Execute(rootCmd, chaincfg.EnvPrefix, chaincfg.DefaultNodeHome); err != nil {
switch e := err.(type) {
@ -25,5 +23,4 @@ func main() {
os.Exit(1)
}
}
fmt.Println("main3")
}

View File

@ -42,7 +42,6 @@ func customKeyringOptions() keyring.Option {
// NewRootCmd creates a new root command for the 0g-chain blockchain.
func NewRootCmd() *cobra.Command {
fmt.Println("NewRootCmd")
encodingConfig := app.MakeEncodingConfig()
initClientCtx := client.Context{}.
WithCodec(encodingConfig.Marshaler).
@ -88,7 +87,6 @@ func NewRootCmd() *cobra.Command {
}
addSubCmds(rootCmd, encodingConfig, chaincfg.DefaultNodeHome)
fmt.Println("NewRootCmd2")
return rootCmd
}

View File

@ -4,7 +4,7 @@ import (
"math/big"
errorsmod "cosmossdk.io/errors"
"github.com/kava-labs/kava/x/evmutil/types"
"github.com/0glabs/0g-chain/x/evmutil/types"
)
var (

View File

@ -8,8 +8,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/suite"
"github.com/kava-labs/kava/x/evmutil/testutil"
"github.com/kava-labs/kava/x/evmutil/types"
"github.com/0glabs/0g-chain/x/evmutil/testutil"
"github.com/0glabs/0g-chain/x/evmutil/types"
)
type Bep3ConversionTestSuite struct {

View File

@ -4,8 +4,8 @@ import (
sdkmath "cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/kava-labs/kava/x/evmutil/testutil"
"github.com/kava-labs/kava/x/evmutil/types"
"github.com/0glabs/0g-chain/x/evmutil/testutil"
"github.com/0glabs/0g-chain/x/evmutil/types"
)
func (suite *MsgServerSuite) TestConvertCoinToERC20_Bep3() {