Skip to content

Commit

Permalink
Merge pull request ethereum#102 from OffchainLabs/export-internals
Browse files Browse the repository at this point in the history
Export `DoEstimateGas`
  • Loading branch information
PlasmaPower committed Jun 13, 2022
2 parents d56aba4 + 4d987bc commit df56736
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions arbitrum/export.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package arbitrum

import (
"context"

"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/internal/ethapi"
"github.com/ethereum/go-ethereum/rpc"
)

type TransactionArgs = ethapi.TransactionArgs

func EstimateGas(ctx context.Context, b ethapi.Backend, args TransactionArgs, blockNrOrHash rpc.BlockNumberOrHash, gasCap uint64) (hexutil.Uint64, error) {
return ethapi.DoEstimateGas(ctx, b, args, blockNrOrHash, gasCap)
}

0 comments on commit df56736

Please sign in to comment.