Skip to content

Commit

Permalink
wip: remove extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Oct 28, 2024
1 parent 85f6cfc commit 14df430
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion app/ante/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import (
var ethCodec codec.ProtoCodecMarshaler

func init() {
fmt.Println("init ante/eip712 eth")
registry := codectypes.NewInterfaceRegistry()
ethermint.RegisterInterfaces(registry)
ethCodec = codec.NewProtoCodec(registry)
Expand Down
5 changes: 0 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"cosmossdk.io/core/appmodule"
"cosmossdk.io/x/feegrant"
"encoding/json"
"fmt"
paramsclient "github.com/cosmos/cosmos-sdk/x/params/client"
"github.com/evmos/ethermint/encoding"
"io"
Expand Down Expand Up @@ -300,7 +299,6 @@ func NewEthermintApp(

// allow x/gov to modify consensus parameters
authAddr := authtypes.NewModuleAddress(govtypes.ModuleName).String()
fmt.Println("authAddr: ", authAddr)
app.ConsensusParamsKeeper = consensusparamkeeper.NewKeeper(appCodec, runtime.NewKVStoreService(keys[consensusparamtypes.StoreKey]), authAddr, runtime.EventService{})

// set the BaseApp's parameter store to the consensus keeper
Expand Down Expand Up @@ -378,9 +376,6 @@ func NewEthermintApp(
// addresscodec.NewBech32Codec(Bech32PrefixValAddr),
// addresscodec.NewBech32Codec(Bech32PrefixConsAddr),
// )
fmt.Println("prefix val", sdk.GetConfig().GetBech32ValidatorAddrPrefix())
fmt.Println("prefix cons", sdk.GetConfig().GetBech32ConsensusAddrPrefix())

//authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()).StringToBytes("authAddr")

stakingKeeper := stakingkeeper.NewKeeper(
Expand Down
2 changes: 0 additions & 2 deletions cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package config

import (
sdkmath "cosmossdk.io/math"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"

ethermint "github.com/evmos/ethermint/types"
Expand Down Expand Up @@ -51,7 +50,6 @@ func SetupConfig() {
config := sdk.GetConfig()
SetBech32Prefixes(config)
SetBip44CoinType(config)
fmt.Println("config seal")
config.Seal()
}

Expand Down
3 changes: 0 additions & 3 deletions encoding/codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package codec

import (
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/std"
Expand All @@ -28,7 +27,6 @@ import (

// RegisterLegacyAminoCodec registers Interfaces from types, crypto, and SDK std.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
fmt.Println("RegisterLegacyAminoCodec inside encoding/codec")
sdk.RegisterLegacyAminoCodec(cdc)
cryptocodec.RegisterCrypto(cdc)
ethermint.RegisterLegacyAminoCodec(cdc)
Expand All @@ -37,7 +35,6 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {

// RegisterInterfaces registers Interfaces from types, crypto, and SDK std.
func RegisterInterfaces(interfaceRegistry codectypes.InterfaceRegistry) {
fmt.Println("RegisterInterfaces inside encoding/codec")
std.RegisterInterfaces(interfaceRegistry)
cryptocodec.RegisterInterfaces(interfaceRegistry)
ethermint.RegisterInterfaces(interfaceRegistry)
Expand Down
5 changes: 0 additions & 5 deletions types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,16 @@
package types

import (
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/tx"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"runtime/debug"
)

// RegisterInterfaces registers the tendermint concrete client-related
// implementations and interfaces.
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
fmt.Println("RegisterInterfaces eth types/codec")
debug.PrintStack()

registry.RegisterImplementations(
(*types.AccountI)(nil),
&EthAccount{},
Expand Down
1 change: 0 additions & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ var (
)

func init() {
fmt.Println("init version")
if len(AppVersion) == 0 {
AppVersion = "dev"
}
Expand Down
1 change: 0 additions & 1 deletion x/evm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {
// RegisterServices registers a GRPC query service to respond to the
// module-specific GRPC queries.
func (am AppModule) RegisterServices(cfg module.Configurator) {
fmt.Println("RegisterServices inside evm module")
types.RegisterMsgServer(cfg.MsgServer(), am.keeper)
types.RegisterQueryServer(cfg.QueryServer(), am.keeper)

Expand Down
4 changes: 0 additions & 4 deletions x/evm/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ package types

import (
errorsmod "cosmossdk.io/errors"
"fmt"
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/msgservice"
"github.com/cosmos/cosmos-sdk/types/tx"
proto "github.com/gogo/protobuf/proto"
"runtime/debug"
)

var (
Expand All @@ -51,8 +49,6 @@ func init() {

// RegisterInterfaces registers the client interfaces to protobuf Any.
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
fmt.Println("RegisterInterfaces for eth codec")
debug.PrintStack()
registry.RegisterImplementations(
(*tx.TxExtensionOptionI)(nil),
&ExtensionOptionsEthereumTx{},
Expand Down

0 comments on commit 14df430

Please sign in to comment.