graphql: fix pre-byzantium receipt status (#24188)

Fixes #24124
pull/24292/head
Sina Mahmoodi 3 years ago committed by GitHub
parent 0169d579d0
commit c20de3c4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      graphql/graphql.go

@ -372,6 +372,9 @@ func (t *Transaction) Status(ctx context.Context) (*Long, error) {
if err != nil || receipt == nil {
return nil, err
}
if len(receipt.PostState) != 0 {
return nil, nil
}
ret := Long(receipt.Status)
return &ret, nil
}

Loading…
Cancel
Save