From 7533f6994ea7d73b834501c4b92667d1dedfba0c Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Sun, 8 Apr 2018 08:44:17 +0000 Subject: [PATCH] Fix errors caused by Tox gem changes --- bin/myaddress | 2 +- lib/reducers/data.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,