Commit eb591ae4 authored by Andreas Bigger's avatar Andreas Bigger

fix batcher test

parent 4cbc6d1e
...@@ -6,6 +6,7 @@ import ( ...@@ -6,6 +6,7 @@ import (
"testing" "testing"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
...@@ -42,11 +43,14 @@ func TestBatchSubmitter_SendTransaction(t *testing.T) { ...@@ -42,11 +43,14 @@ func TestBatchSubmitter_SendTransaction(t *testing.T) {
gasFeeCap := big.NewInt(137) gasFeeCap := big.NewInt(137)
gas := uint64(1337) gas := uint64(1337)
// Candidate gas should be calculated with [core.IntrinsicGas]
intrinsicGas, err := core.IntrinsicGas(txData, nil, false, true, true, false)
require.NoError(t, err)
candidate := txmgr.TxCandidate{ candidate := txmgr.TxCandidate{
To: batcherInboxAddress, To: batcherInboxAddress,
TxData: txData, TxData: txData,
From: sender, From: sender,
GasLimit: uint64(0), GasLimit: intrinsicGas,
} }
tx := types.NewTx(&types.DynamicFeeTx{ tx := types.NewTx(&types.DynamicFeeTx{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment