Skip to content

Commit

Permalink
Merge pull request #4582 from harmony-one/feature/HET104-12523
Browse files Browse the repository at this point in the history
Fix: Inconsistent from field Hash Calculation in Different API Versions #2
  • Loading branch information
adsorptionenthalpy authored Dec 7, 2023
2 parents 29c6249 + 3b27215 commit 2001b34
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions rpc/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down

0 comments on commit 2001b34

Please sign in to comment.