mirror of https://github.com/status-im/op-geth.git
Updated to new ethereum.js api
This commit is contained in:
parent
c9f566269b
commit
f9b0d1a8e7
|
@ -70,7 +70,7 @@ Rectangle {
|
|||
}
|
||||
|
||||
function onShhMessage(message, id) {
|
||||
webview.postEvent("shhChanged", id, message)
|
||||
webview.postEvent("shh_changed", id, message)
|
||||
}
|
||||
|
||||
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) {
|
||||
var data []byte
|
||||
for _, d := range payload {
|
||||
data = append(data, ethutil.Hex2Bytes(d)...)
|
||||
data = append(data, fromHex(d)...)
|
||||
}
|
||||
|
||||
msg := whisper.NewMessage(data)
|
||||
|
|
Loading…
Reference in New Issue