Updated to new ethereum.js api

pull/253/head
obscuren 10 years ago
parent c9f566269b
commit f9b0d1a8e7
  1. 2
      cmd/mist/assets/qml/browser.qml
  2. 2
      ui/qt/qwhisper/whisper.go

@ -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 {

@ -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)

Loading…
Cancel
Save