Moved ethutil => common
This commit is contained in:
@ -2,7 +2,7 @@ package qwhisper
|
||||
|
||||
import (
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/ethutil"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/whisper"
|
||||
)
|
||||
|
||||
@ -17,7 +17,7 @@ func ToQMessage(msg *whisper.Message) *Message {
|
||||
return &Message{
|
||||
ref: msg,
|
||||
Flags: int32(msg.Flags),
|
||||
Payload: "0x" + ethutil.Bytes2Hex(msg.Payload),
|
||||
From: "0x" + ethutil.Bytes2Hex(crypto.FromECDSAPub(msg.Recover())),
|
||||
Payload: "0x" + common.Bytes2Hex(msg.Payload),
|
||||
From: "0x" + common.Bytes2Hex(crypto.FromECDSAPub(msg.Recover())),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user