aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-30 00:36:16 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-10-19 15:03:09 +0800
commit42c8afd44006b170c20159abaadc31cc7545bec2 (patch)
tree49f150caef8b09d1584dc9635382b3938fee45e1 /rpc
parentb99fe27f8b4d37fe3838d52b682e99c85098ee59 (diff)
downloaddexon-42c8afd44006b170c20159abaadc31cc7545bec2.tar.gz
dexon-42c8afd44006b170c20159abaadc31cc7545bec2.tar.zst
dexon-42c8afd44006b170c20159abaadc31cc7545bec2.zip
core: differentiate receipt concensus and storage decoding
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/parsing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/api/parsing.go b/rpc/api/parsing.go
index cdfaa0ed1..7667616ff 100644
--- a/rpc/api/parsing.go
+++ b/rpc/api/parsing.go
@@ -453,8 +453,8 @@ func NewReceiptRes(rec *types.Receipt) *ReceiptRes {
v.ContractAddress = newHexData(rec.ContractAddress)
}
- logs := make([]interface{}, len(rec.Logs()))
- for i, log := range rec.Logs() {
+ logs := make([]interface{}, len(rec.Logs))
+ for i, log := range rec.Logs {
logs[i] = NewLogRes(log)
}
v.Logs = &logs