Skip to content

Commit 2c4471f

Browse files
author
colinlyguo
committed
fix
1 parent e1b1490 commit 2c4471f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rollup/internal/controller/sender/sender.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/holiman/uint256"
1313
"github.com/prometheus/client_golang/prometheus"
1414
"github.com/scroll-tech/go-ethereum/common"
15-
"github.com/scroll-tech/go-ethereum/consensus/misc/eip4844"
15+
"github.com/scroll-tech/go-ethereum/consensus/misc"
1616
gethTypes "github.com/scroll-tech/go-ethereum/core/types"
1717
"github.com/scroll-tech/go-ethereum/crypto/kzg4844"
1818
"github.com/scroll-tech/go-ethereum/ethclient"
@@ -675,7 +675,7 @@ func (s *Sender) getBlockNumberAndBaseFeeAndBlobFee(ctx context.Context) (uint64
675675

676676
var blobBaseFee uint64
677677
if excess := header.ExcessBlobGas; excess != nil {
678-
blobBaseFee = eip4844.CalcBlobFee(*excess).Uint64()
678+
blobBaseFee = misc.CalcBlobFee(*excess).Uint64()
679679
}
680680
// header.Number.Uint64() returns the pendingBlockNumber, so we minus 1 to get the latestBlockNumber.
681681
return header.Number.Uint64() - 1, baseFee, blobBaseFee, nil

rollup/internal/controller/watcher/l1_watcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"math/big"
77

88
"github.com/prometheus/client_golang/prometheus"
9-
"github.com/scroll-tech/go-ethereum/consensus/misc/eip4844"
9+
"github.com/scroll-tech/go-ethereum/consensus/misc"
1010
gethTypes "github.com/scroll-tech/go-ethereum/core/types"
1111
"github.com/scroll-tech/go-ethereum/ethclient"
1212
"github.com/scroll-tech/go-ethereum/log"
@@ -80,7 +80,7 @@ func (w *L1WatcherClient) FetchBlockHeader(blockHeight uint64) error {
8080

8181
var blobBaseFee uint64
8282
if excess := block.ExcessBlobGas; excess != nil {
83-
blobBaseFee = eip4844.CalcBlobFee(*excess).Uint64()
83+
blobBaseFee = misc.CalcBlobFee(*excess).Uint64()
8484
}
8585

8686
l1Block := orm.L1Block{

0 commit comments

Comments
 (0)