diff --git a/app/ante.go b/app/ante.go index 4f262a11..f690e4d0 100644 --- a/app/ante.go +++ b/app/ante.go @@ -173,6 +173,10 @@ func consumeSigGas(meter sdk.GasMeter, pubkey tmcrypto.PubKey) { switch pubkey.(type) { case crypto.PubKeySecp256k1: meter.ConsumeGas(secp256k1VerifyCost, "ante verify: secp256k1") + // TODO: Remove allowing tm Pub key to sign transactions (if intended in final release) + // or until genesis utils are built into the evm or as their own module + case tmcrypto.PubKey: + meter.ConsumeGas(secp256k1VerifyCost, "ante verify: tendermint secp256k1") default: panic("Unrecognized signature type") } diff --git a/app/ethermint.go b/app/ethermint.go index bf0b2360..8b487e7e 100644 --- a/app/ethermint.go +++ b/app/ethermint.go @@ -217,7 +217,7 @@ func NewEthermintApp( // initialize BaseApp app.SetInitChainer(app.InitChainer) app.SetBeginBlocker(app.BeginBlocker) - app.SetAnteHandler(auth.NewAnteHandler(app.accountKeeper, app.supplyKeeper, auth.DefaultSigVerificationGasConsumer)) + app.SetAnteHandler(NewAnteHandler(app.accountKeeper, app.supplyKeeper)) app.SetEndBlocker(app.EndBlocker) if loadLatest {