Skip to content

Commit 731ea41

Browse files
committed
fix build
1 parent 3a625d7 commit 731ea41

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gomod2nix.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ schema = 3
6666
hash = "sha256-4EndKcspGC3GOPCmctXF1NnWzxWwMyY/OQpFMmr8Sc0="
6767
[mod."github.com/99designs/keyring"]
6868
version = "v1.2.0"
69-
hash = "sha256-N7uvSlt50V12ESr8TXttidKEarzMV9DI2uA67xK/Vqo="
69+
hash = "sha256-emQlH+RQpESoFCzpHS38fEhs1SLjotxNPlRK4B5Aybs="
7070
replaced = "github.com/cosmos/keyring"
7171
[mod."github.com/DataDog/datadog-go"]
7272
version = "v4.8.3+incompatible"

tests/importer/chain_ctx.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (cc *ChainContext) SealHash(_ *ethtypes.Header) common.Hash {
149149
//
150150
// TODO: Figure out if this needs to be hooked up to any part of the Cosmos SDK
151151
// handlers?
152-
func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.Header, _ bool) error {
152+
func (cc *ChainContext) VerifyHeader(_ ethcons.ChainHeaderReader, _ *ethtypes.Header) error {
153153
return nil
154154
}
155155

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

tests/importer/chain_ctx_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ func TestChainContextSeal(t *testing.T) {
9292
func TestChainContextVerifyHeader(t *testing.T) {
9393
cc := NewChainContext()
9494

95-
err := cc.VerifyHeader(nil, nil, false)
95+
err := cc.VerifyHeader(nil, nil)
9696
require.Nil(t, err)
9797
}
9898

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

102-
ch, err := cc.VerifyHeaders(nil, nil, []bool{false})
102+
ch, err := cc.VerifyHeaders(nil, nil)
103103
require.Nil(t, err)
104104
require.Nil(t, ch)
105105
}

tests/importer/importer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func applyTransaction(
232232
gp *ethcore.GasPool, evmKeeper *evmkeeper.Keeper, vmdb *statedb.StateDB, header *ethtypes.Header,
233233
tx *ethtypes.Transaction, usedGas *uint64, cfg ethvm.Config,
234234
) (*ethtypes.Receipt, uint64, error) {
235-
msg, err := ethcore.TransactionToMessage(tx, ethtypes.MakeSigner(config, header.Number), sdkmath.ZeroInt().BigInt())
235+
msg, err := ethcore.TransactionToMessage(tx, ethtypes.MakeSigner(config, header.Number, header.Time), sdkmath.ZeroInt().BigInt())
236236
if err != nil {
237237
return nil, 0, err
238238
}

0 commit comments

Comments
 (0)