Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
davvd committed Dec 5, 2023
1 parent 9c77559 commit 03d328f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/zold/commands/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def create_id(opts)
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
Expand Down

0 comments on commit 03d328f

Please sign in to comment.