diff --git a/bin/myaddress b/bin/myaddress index a4d7de8..7503a22 100755 --- a/bin/myaddress +++ b/bin/myaddress @@ -13,4 +13,4 @@ SAVEDATA_FILENAME = File.expand_path '../savedata', __dir__ tox_options = Tox::Options.new tox_options.savedata = File.binread SAVEDATA_FILENAME tox_client = Tox::Client.new tox_options -puts tox_client.address.to_hex +puts tox_client.address diff --git a/lib/reducers/data.rb b/lib/reducers/data.rb index 962933e..7f6dfea 100644 --- a/lib/reducers/data.rb +++ b/lib/reducers/data.rb @@ -39,7 +39,7 @@ module Reducers friends: action.friends.map do |friend| [ friend.number, - public_key: friend.public_key.to_hex.freeze, + public_key: friend.public_key.to_s, name: friend.name.freeze, status: friend.status, status_message: friend.status_message.freeze, @@ -59,7 +59,7 @@ module Reducers friends: state[:friends].merge( action.friend.number => { - public_key: action.friend.public_key.to_hex.freeze, + public_key: action.friend.public_key.to_s, name: action.friend.name.freeze, status: action.friend.status, status_message: action.friend.status_message.freeze,