diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-04 13:00:23 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-07-04 13:00:23 +0800 |
commit | 481b221279be1673832f96e35e3fdc0f82e178bc (patch) | |
tree | 4efeb12d4685b56a9d137c3b72d6d6184dbf8b53 /rpc | |
parent | 80eb8f46b7991b80dffe00e52d9fb00a90531bc0 (diff) | |
download | go-tangerine-481b221279be1673832f96e35e3fdc0f82e178bc.tar.gz go-tangerine-481b221279be1673832f96e35e3fdc0f82e178bc.tar.zst go-tangerine-481b221279be1673832f96e35e3fdc0f82e178bc.zip |
Decode full receipt storage
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api/parsing.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rpc/api/parsing.go b/rpc/api/parsing.go index d1f9ccac2..c7edf4325 100644 --- a/rpc/api/parsing.go +++ b/rpc/api/parsing.go @@ -413,15 +413,17 @@ type ReceiptRes struct { Logs *[]interface{} `json:logs` } -func NewReceiptRes(rec *types.Receipt) *ReceiptRes { +func NewReceiptRes(rec *types.ReceiptForStorage) *ReceiptRes { if rec == nil { return nil } var v = new(ReceiptRes) // TODO fill out rest of object + // ContractAddress is all 0 when not a creation tx + v.ContractAddress = newHexData(rec.ContractAddress) v.CumulativeGasUsed = newHexNum(rec.CumulativeGasUsed) - + v.TransactionHash = newHexData(rec.TxHash) return v } |