WIP QT Clipboard

This commit is contained in:
obscuren
2015-02-19 11:51:38 +01:00
parent 03b8c6841b
commit 0057bb4ef6
8 changed files with 75 additions and 4 deletions

View File

@ -80,7 +80,7 @@ type RpcServer interface {
type Log struct {
Address string `json:"address"`
Topics []string `json:"topics"`
Topic []string `json:"topics"`
Data string `json:"data"`
}
@ -89,11 +89,11 @@ func toLogs(logs state.Logs) (ls []Log) {
for i, log := range logs {
var l Log
l.Topics = make([]string, len(log.Topics()))
l.Topic = make([]string, len(log.Topics()))
l.Address = toHex(log.Address())
l.Data = toHex(log.Data())
for j, topic := range log.Topics() {
l.Topics[j] = toHex(topic)
l.Topic[j] = toHex(topic)
}
ls[i] = l
}