Updated to new ethereum.js api

This commit is contained in:
obscuren 2015-01-09 13:36:47 +01:00
parent c9f566269b
commit f9b0d1a8e7
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ Rectangle {
} }
function onShhMessage(message, id) { function onShhMessage(message, id) {
webview.postEvent("shhChanged", id, message) webview.postEvent("shh_changed", id, message)
} }
Item { Item {

View File

@ -38,7 +38,7 @@ func (self *Whisper) SetView(view qml.Object) {
func (self *Whisper) Post(payload []string, to, from string, topics []string, priority, ttl uint32) { func (self *Whisper) Post(payload []string, to, from string, topics []string, priority, ttl uint32) {
var data []byte var data []byte
for _, d := range payload { for _, d := range payload {
data = append(data, ethutil.Hex2Bytes(d)...) data = append(data, fromHex(d)...)
} }
msg := whisper.NewMessage(data) msg := whisper.NewMessage(data)