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 324f559
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gomod2nix.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ schema = 3
hash = "sha256-4EndKcspGC3GOPCmctXF1NnWzxWwMyY/OQpFMmr8Sc0="
[mod."github.com/99designs/keyring"]
version = "v1.2.0"
hash = "sha256-N7uvSlt50V12ESr8TXttidKEarzMV9DI2uA67xK/Vqo="
hash = "sha256-emQlH+RQpESoFCzpHS38fEhs1SLjotxNPlRK4B5Aybs="
replaced = "github.com/cosmos/keyring"
[mod."github.com/DataDog/datadog-go"]
version = "v4.8.3+incompatible"
Expand Down Expand Up @@ -540,7 +540,7 @@ schema = 3
hash = "sha256-oAE+fEaRfZPE541IPWE0GMeBBYgH2DMhtZNxzp7DFlY="
[mod."github.com/spf13/pflag"]
version = "v1.0.5"
hash = "sha256-GG3BkKXQK0+pfRtkwA4DXOfYpFyPQU4dd60YmoEiJlw="
hash = "sha256-w9LLYzxxP74WHT4ouBspH/iQZXjuAh2WQCHsuvyEjAw="
[mod."github.com/spf13/viper"]
version = "v1.18.2"
hash = "sha256-MXYbK6w1LEaoZ2/L/STF3WU1tbK+7NwGVxUCLKPkwks="
Expand Down
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 324f559

Please sign in to comment.