lib/bit_wallet/account.rb in bit_wallet-0.1.0 vs lib/bit_wallet/account.rb in bit_wallet-0.1.1
- old
+ new
@@ -41,10 +41,12 @@
self.name == other_account.name
end
def recent_transactions(options={})
count = options.delete(:limit) || 10
- client.listtransactions self.name, count
+ client.listtransactions(self.name, count).map do |hash|
+ Transaction.new self.wallet, hash
+ end
end
private
def parse_error(response)