Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/exe/myaddress

17 lines
413 B
Text
Raw Normal View History

2017-08-11 22:24:53 -04:00
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/setup'
lib = File.expand_path('../lib', __dir__).freeze
$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
require 'tox'
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