From 4d987bccf94a53cc3533162bdff3bd96850a52c9 Mon Sep 17 00:00:00 2001 From: Rachel Franks Date: Tue, 31 May 2022 13:22:49 -0500 Subject: [PATCH] export DoEstimateGas --- arbitrum/export.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 arbitrum/export.go diff --git a/arbitrum/export.go b/arbitrum/export.go new file mode 100644 index 000000000000..a0c0c3675b17 --- /dev/null +++ b/arbitrum/export.go @@ -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) +}