Eth JSON-RPC API: make EthLog#Data a string.

This commit is contained in:
Raúl Kripalani
2022-11-16 20:51:28 +00:00
parent 5b4ec7dbea
commit a536f533d8
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1062,7 +1062,7 @@ func ethFilterResultFromEvents(evs []*filter.CollectedEvent) (*api.EthFilterResu
if entry.Key == api.EthTopic1 || entry.Key == api.EthTopic2 || entry.Key == api.EthTopic3 || entry.Key == api.EthTopic4 {
log.Topics = append(log.Topics, hash)
} else {
log.Data = append(log.Data, hash)
log.Data = hash
}
}
@@ -1497,7 +1497,7 @@ func newEthTxReceipt(ctx context.Context, tx api.EthTx, lookup *api.MsgLookup, r
if entry.Key == api.EthTopic1 || entry.Key == api.EthTopic2 || entry.Key == api.EthTopic3 || entry.Key == api.EthTopic4 {
l.Topics = append(l.Topics, hash)
} else {
l.Data = append(l.Data, hash)
l.Data = hash
}
}