mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
merge
This commit is contained in:
parent
63d500a926
commit
e280d93c95
2 changed files with 0 additions and 15 deletions
|
|
@ -895,20 +895,6 @@ func (p *Pending) EstimateGas(ctx context.Context, args struct {
|
||||||
return gas, err
|
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.
|
// Resolver is the top-level object in the GraphQL hierarchy.
|
||||||
type Resolver struct {
|
type Resolver struct {
|
||||||
backend ethapi.Backend
|
backend ethapi.Backend
|
||||||
|
|
|
||||||
|
|
@ -292,7 +292,6 @@ const schema string = `
|
||||||
# EstimateGas estimates the amount of gas that will be required for
|
# EstimateGas estimates the amount of gas that will be required for
|
||||||
# successful execution of a transaction for the pending state.
|
# successful execution of a transaction for the pending state.
|
||||||
estimateGas(data: CallData!): Long!
|
estimateGas(data: CallData!): Long!
|
||||||
estimateGases(data: [CallData!]): [Long!]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue