aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/shhapi/api.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-12-17 22:39:55 +0800
committerFelix Lange <fjl@twurst.com>2016-12-20 21:41:58 +0800
commitcf71f5cd604f4d5c94d9e9b12b121a614d662dc7 (patch)
treea89491c26dc19fc39bb6d8273eeefa2778ff5ec2 /whisper/shhapi/api.go
parentadab2e16bdf24c2eaf498722187fb36c04a5376b (diff)
downloaddexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.tar
dexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.tar.gz
dexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.tar.bz2
dexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.tar.lz
dexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.tar.xz
dexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.tar.zst
dexon-cf71f5cd604f4d5c94d9e9b12b121a614d662dc7.zip
rpc: remove HexNumber, replace all uses with hexutil types
This change couldn't be automated because HexNumber was used for numbers of all sizes.
Diffstat (limited to 'whisper/shhapi/api.go')
-rw-r--r--whisper/shhapi/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/whisper/shhapi/api.go b/whisper/shhapi/api.go
index 8a0bd9214..24d54b653 100644
--- a/whisper/shhapi/api.go
+++ b/whisper/shhapi/api.go
@@ -73,11 +73,11 @@ func (api *PublicWhisperAPI) Stop() error {
}
// Version returns the Whisper version this node offers.
-func (api *PublicWhisperAPI) Version() (*rpc.HexNumber, error) {
+func (api *PublicWhisperAPI) Version() (hexutil.Uint, error) {
if api.whisper == nil {
- return rpc.NewHexNumber(0), whisperOffLineErr
+ return 0, whisperOffLineErr
}
- return rpc.NewHexNumber(api.whisper.Version()), nil
+ return hexutil.Uint(api.whisper.Version()), nil
}
// MarkPeerTrusted marks specific peer trusted, which will allow it