From e280d93c95efa5241090bb56249af646b02b59da Mon Sep 17 00:00:00 2001 From: Kosala Hemachandra Date: Mon, 11 May 2020 18:06:20 -0700 Subject: [PATCH] merge --- graphql/graphql.go | 14 -------------- graphql/schema.go | 1 - 2 files changed, 15 deletions(-) diff --git a/graphql/graphql.go b/graphql/graphql.go index 948e1d08ce..f72085dbe1 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -895,20 +895,6 @@ func (p *Pending) EstimateGas(ctx context.Context, args struct { return gas, err } -func (p *Pending) EstimateGases(ctx context.Context, args struct { - Data *[]ethapi.CallArgs -}) (*[]hexutil.Uint64, error) { - ret := make([]hexutil.Uint64, 0, len(*args.Data)) - for _, call := range *args.Data { - estimatedGas, err := ethapi.DoEstimateGas(ctx, p.backend, call, rpc.PendingBlockNumber) - if err != nil { - return &ret, nil - } - ret = append(ret, estimatedGas) - } - return &ret, nil -} - // Resolver is the top-level object in the GraphQL hierarchy. type Resolver struct { backend ethapi.Backend diff --git a/graphql/schema.go b/graphql/schema.go index 73ef68e469..5dec10db20 100644 --- a/graphql/schema.go +++ b/graphql/schema.go @@ -292,7 +292,6 @@ const schema string = ` # EstimateGas estimates the amount of gas that will be required for # successful execution of a transaction for the pending state. estimateGas(data: CallData!): Long! - estimateGases(data: [CallData!]): [Long!] } type Query {