mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "graphql: validate block params (#27876)"
This reverts commit 639618350d.
This commit is contained in:
parent
d586a671a3
commit
7ab1dc6c9f
1 changed files with 0 additions and 3 deletions
|
|
@ -1217,9 +1217,6 @@ func (r *Resolver) Block(ctx context.Context, args struct {
|
|||
Number *Long
|
||||
Hash *common.Hash
|
||||
}) (*Block, error) {
|
||||
if args.Number != nil && args.Hash != nil {
|
||||
return nil, errors.New("only one of number or hash must be specified")
|
||||
}
|
||||
var numberOrHash rpc.BlockNumberOrHash
|
||||
if args.Number != nil {
|
||||
if *args.Number < 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue