aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/qwhisper/message.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-22 20:23:11 +0800
committerobscuren <geffobscura@gmail.com>2014-12-22 20:23:11 +0800
commit4051c0333f43765a7414a4e0e8ac51e7148b0646 (patch)
tree87c3637424820a681b88723bc666f3d01c069e82 /ui/qt/qwhisper/message.go
parente42517754ac2912b6d3ca78a34b8aeadf8805906 (diff)
downloaddexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar
dexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.gz
dexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.bz2
dexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.lz
dexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.xz
dexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.tar.zst
dexon-4051c0333f43765a7414a4e0e8ac51e7148b0646.zip
Added whisper js api
Diffstat (limited to 'ui/qt/qwhisper/message.go')
-rw-r--r--ui/qt/qwhisper/message.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/qwhisper/message.go b/ui/qt/qwhisper/message.go
index 07505ba09..c87647399 100644
--- a/ui/qt/qwhisper/message.go
+++ b/ui/qt/qwhisper/message.go
@@ -8,7 +8,7 @@ import (
type Message struct {
ref *whisper.Message
- Flags byte
+ Flags int32
Payload string
From string
}
@@ -16,7 +16,7 @@ type Message struct {
func ToQMessage(msg *whisper.Message) *Message {
return &Message{
ref: msg,
- Flags: msg.Flags,
+ Flags: int32(msg.Flags),
Payload: ethutil.Bytes2Hex(msg.Payload),
From: ethutil.Bytes2Hex(crypto.FromECDSAPub(msg.Recover())),
}