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