Merge pull request #4582 from harmony-one/feature/HET104-12523

Fix: Inconsistent from field Hash Calculation in Different API Versions #2
pull/4589/head
Adam Androulidakis 12 months ago committed by GitHub
commit 2001b34658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      rpc/transaction.go

@ -751,7 +751,7 @@ func (s *PublicTransactionService) GetTransactionReceipt(
return nil, err
}
return NewStructuredResponse(RPCReceipt)
case V2:
case V2, Eth:
if tx == nil {
RPCReceipt, err = v2.NewReceipt(stx, blockHash, blockNumber, index, receipt)
} else {
@ -761,14 +761,6 @@ func (s *PublicTransactionService) GetTransactionReceipt(
return nil, err
}
return NewStructuredResponse(RPCReceipt)
case Eth:
if tx != nil {
RPCReceipt, err = eth.NewReceipt(tx.ConvertToEth(), blockHash, blockNumber, index, receipt)
}
if err != nil {
return nil, err
}
return NewStructuredResponse(RPCReceipt)
default:
return nil, ErrUnknownRPCVersion
}

Loading…
Cancel
Save