Skip to content

Commit

Permalink
Correctly set gas price to 0 when 'zkevm.allow-free-transactions' is …
Browse files Browse the repository at this point in the history
…true
  • Loading branch information
cffls committed Oct 15, 2024
1 parent ab3013d commit 79429e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/rpcdaemon/commands/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/ledgerwatch/erigon/rpc"
"github.com/ledgerwatch/erigon/turbo/rpchelper"
"github.com/ledgerwatch/erigon/turbo/services"
"github.com/ledgerwatch/erigon/zk/sequencer"
"github.com/ledgerwatch/erigon/zk/syncer"
txpool2 "github.com/ledgerwatch/erigon/zk/txpool"
"github.com/ledgerwatch/erigon/zk/sequencer"
)

// APIList describes the list of available RPC apis
Expand All @@ -32,7 +32,7 @@ func APIList(db kv.RoDB, borDb kv.RoDB, eth rpchelper.ApiBackend, txPool txpool.

base := NewBaseApi(filters, stateCache, blockReader, agg, cfg.WithDatadir, cfg.EvmCallTimeout, engine, cfg.Dirs)
base.SetL2RpcUrl(ethCfg.L2RpcUrl)
base.SetGasless(ethCfg.Gasless)
base.SetGasless(ethCfg.AllowFreeTransactions)
ethImpl := NewEthAPI(base, db, eth, txPool, mining, cfg.Gascap, cfg.ReturnDataLimit, ethCfg)
erigonImpl := NewErigonAPI(base, db, eth)
txpoolImpl := NewTxPoolAPI(base, db, txPool, rawPool, rpcUrl)
Expand Down Expand Up @@ -164,7 +164,7 @@ func AuthAPIList(db kv.RoDB, eth rpchelper.ApiBackend, txPool txpool.TxpoolClien
) (list []rpc.API) {
base := NewBaseApi(filters, stateCache, blockReader, agg, cfg.WithDatadir, cfg.EvmCallTimeout, engine, cfg.Dirs)
base.SetL2RpcUrl(ethCfg.L2RpcUrl)
base.SetGasless(ethCfg.Gasless)
base.SetGasless(ethCfg.AllowFreeTransactions)

ethImpl := NewEthAPI(base, db, eth, txPool, mining, cfg.Gascap, cfg.ReturnDataLimit, ethCfg)
engineImpl := NewEngineAPI(base, db, eth, cfg.InternalCL)
Expand Down

0 comments on commit 79429e3

Please sign in to comment.