lib/zold/patch.rb in zold-0.5 vs lib/zold/patch.rb in zold-0.6
- old
+ new
@@ -42,10 +42,10 @@
next if
txn.amount.negative? && !@txns.empty? &&
(txn.id <= max ||
@txns.find { |t| t.id == txn.id } ||
@txns.map(&:amount).inject(&:+) < txn.amount)
- next unless Signature.new.valid?(@key, txn)
+ next unless Signature.new.valid?(@key, wallet.id, txn)
@txns << txn
end
end
# Returns TRUE if the file was actually modified