lib/zold/commands/fetch.rb in zold-0.20.2 vs lib/zold/commands/fetch.rb in zold-0.20.3

- old
+ new

@@ -147,11 +147,10 @@ score = Score.parse_json(json['score']) r.assert_valid_score(score) r.assert_score_ownership(score) r.assert_score_strength(score) unless opts['ignore-score-weakness'] Tempfile.open(['', Wallet::EXT]) do |f| - body = json['body'] - IO.write(f, body) + IO.write(f, json['body']) wallet = Wallet.new(f.path) wallet.refurbish if wallet.protocol != Zold::PROTOCOL raise "Protocol #{wallet.protocol} doesn't match #{Zold::PROTOCOL} in #{id}" end