lib/zold/commands/pay.rb in zold-0.10.12 vs lib/zold/commands/pay.rb in zold-0.10.13

- old
+ new

@@ -77,9 +77,11 @@ ) end pay(from, invoice, amount, details, opts) end + private + def pay(from, invoice, amount, details, opts) unless opts.force? raise 'The amount can\'t be zero' if amount.zero? raise "The amount can't be negative: #{amount}" if amount.negative? if !from.root? && from.balance < amount