Skip to content

Commit d8b93bc

Browse files
Address issues
1 parent 8159c4b commit d8b93bc

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

execution/evm/evm_helpers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ func GetRandomTransaction(t *testing.T, privateKeyHex, toAddressHex, chainID str
167167
func SubmitTransaction(t *testing.T, tx *types.Transaction) {
168168
rpcClient, err := ethclient.Dial("http://localhost:8545")
169169
require.NoError(t, err)
170+
defer rpcClient.Close()
171+
170172
err = rpcClient.SendTransaction(context.Background(), tx)
171173
require.NoError(t, err)
172174
}
@@ -176,6 +178,7 @@ func CheckTxIncluded(t *testing.T, txHash common.Hash) bool {
176178
if err != nil {
177179
return false
178180
}
181+
defer rpcClient.Close()
179182
receipt, err := rpcClient.TransactionReceipt(context.Background(), txHash)
180183
return err == nil && receipt != nil && receipt.Status == 1
181184
}

execution/evm/execution.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,13 @@ func NewEngineExecutionClient(
8383
}
8484

8585
return &EngineClient{
86-
engineClient: engineClient,
87-
ethClient: ethClient,
88-
genesisHash: genesisHash,
89-
feeRecipient: feeRecipient,
86+
engineClient: engineClient,
87+
ethClient: ethClient,
88+
genesisHash: genesisHash,
89+
feeRecipient: feeRecipient,
90+
currentHeadBlockHash: genesisHash,
91+
currentSafeBlockHash: genesisHash,
92+
currentFinalizedBlockHash: genesisHash,
9093
}, nil
9194
}
9295

test/e2e/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/rollkit/rollkit/test/e2e
22

3-
go 1.24.1
4-
5-
toolchain go1.24.3
3+
go 1.24.2
64

75
require (
86
github.com/libp2p/go-libp2p v0.41.1

0 commit comments

Comments
 (0)