Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Mar 27, 2024
1 parent 3a625d7 commit 3cb17b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/importer/chain_ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (cc *ChainContext) SealHash(_ *ethtypes.Header) common.Hash {
//
// TODO: Figure out if this needs to be hooked up to any part of the Cosmos SDK
// handlers?
func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.Header, _ bool) error {
func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.Header) error {
return nil
}

Expand All @@ -158,7 +158,7 @@ func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.He
//
// TODO: Figure out if this needs to be hooked up to any part of the Cosmos SDK
// handlers?
func (cc *ChainContext) VerifyHeaders(_ ethcons.ChainHeaderReader, _ []*ethtypes.Header, _ []bool) (chan<- struct{}, <-chan error) {
func (cc *ChainContext) VerifyHeaders(_ ethcons.ChainHeaderReader, _ []*ethtypes.Header) (chan<- struct{}, <-chan error) {
return nil, nil
}

Expand Down
4 changes: 2 additions & 2 deletions tests/importer/chain_ctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ func TestChainContextSeal(t *testing.T) {
func TestChainContextVerifyHeader(t *testing.T) {
cc := NewChainContext()

err := cc.VerifyHeader(nil, nil, false)
err := cc.VerifyHeader(nil, nil)
require.Nil(t, err)
}

func TestChainContextVerifyHeaders(t *testing.T) {
cc := NewChainContext()

ch, err := cc.VerifyHeaders(nil, nil, []bool{false})
ch, err := cc.VerifyHeaders(nil, nil)
require.Nil(t, err)
require.Nil(t, ch)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/importer/importer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func applyTransaction(
gp *ethcore.GasPool, evmKeeper *evmkeeper.Keeper, vmdb *statedb.StateDB, header *ethtypes.Header,
tx *ethtypes.Transaction, usedGas *uint64, cfg ethvm.Config,
) (*ethtypes.Receipt, uint64, error) {
msg, err := ethcore.TransactionToMessage(tx, ethtypes.MakeSigner(config, header.Number), sdkmath.ZeroInt().BigInt())
msg, err := ethcore.TransactionToMessage(tx, ethtypes.MakeSigner(config, header.Number, header.Time), sdkmath.ZeroInt().BigInt())
if err != nil {
return nil, 0, err
}
Expand Down

0 comments on commit 3cb17b3

Please sign in to comment.