This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ func PrivateMode() {
59
59
60
60
ov := gas .NewDefaultOverhead ()
61
61
if chain .Cmp (config .ArbitrumOneChainID ) == 0 || chain .Cmp (config .ArbitrumGoerliChainID ) == 0 {
62
- ov .SetCalcPreVerificationGasFunc (gas .CalcArbitrumPVGWithEthClient (rpc ))
62
+ ov .SetCalcPreVerificationGasFunc (gas .CalcArbitrumPVGWithEthClient (rpc , conf . SupportedEntryPoints [ 0 ] ))
63
63
}
64
64
65
65
mem , err := mempool .New (db )
Original file line number Diff line number Diff line change @@ -3,6 +3,5 @@ package nodeinterface
3
3
import "github.com/ethereum/go-ethereum/common"
4
4
5
5
var (
6
- ERC4337GasHelperAddress = common .HexToAddress ("0x559e3c6A74678FDBE1Fcc54153A8D7Dd7049FBCA" )
7
- PrecompileAddress = common .HexToAddress ("0x00000000000000000000000000000000000000C8" )
6
+ PrecompileAddress = common .HexToAddress ("0x00000000000000000000000000000000000000C8" )
8
7
)
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ func calcPVGFuncNoop() CalcPreVerificationGasFunc {
29
29
// https://medium.com/offchainlabs/understanding-arbitrum-2-dimensional-fees-fd1d582596c9.
30
30
func CalcArbitrumPVGWithEthClient (
31
31
rpc * rpc.Client ,
32
+ entryPoint common.Address ,
32
33
) CalcPreVerificationGasFunc {
33
34
pk , _ := crypto .GenerateKey ()
34
35
dummy , _ := signer .New (hexutil .Encode (crypto .FromECDSA (pk ))[2 :])
@@ -48,7 +49,7 @@ func CalcArbitrumPVGWithEthClient(
48
49
create = true
49
50
}
50
51
ge , err := nodeinterface .GasEstimateL1ComponentMethod .Inputs .Pack (
51
- nodeinterface . ERC4337GasHelperAddress ,
52
+ entryPoint ,
52
53
create ,
53
54
append (methods .HandleOpsMethod .ID , ho ... ),
54
55
)
You can’t perform that action at this time.
0 commit comments