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

Fixes #24124
This commit is contained in:
Sina Mahmoodi 2022-01-05 16:21:08 +01:00 committed by GitHub
parent 0169d579d0
commit c20de3c4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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
}