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
2017-08-12 02:24:53 +00:00

16 lines
413 B
Ruby
Executable file

#!/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