lib/zold/commands/create.rb in zold-0.31.7 vs lib/zold/commands/create.rb in zold-0.31.8

- old
+ new

@@ -85,9 +85,10 @@ end def create(id, opts) key = Zold::Key.new(file: opts['public-key']) @wallets.acq(id, exclusive: true) do |wallet| + raise "Wallet #{id} already exists" if wallet.exists? wallet.init(id, key, network: opts['network']) @log.debug("Wallet #{Rainbow(wallet).green} created at #{@wallets.path}") end @log.info(id) id