lib/zold/commands/create.rb in zold-0.10.12 vs lib/zold/commands/create.rb in zold-0.10.13
- old
+ new
@@ -53,9 +53,11 @@
end
mine = Args.new(opts, @log).take || return
create(mine.empty? ? Id.new : Id.new(mine[0]), opts)
end
+ private
+
def create(id, opts)
wallet = @wallets.find(id)
key = Zold::Key.new(file: opts['public-key'])
wallet.init(id, key, network: opts['network'])
@log.info(wallet.id)