lib/bit_wallet/account.rb in bit_wallet-0.6.1 vs lib/bit_wallet/account.rb in bit_wallet-0.7.0

- old
+ new

@@ -12,11 +12,11 @@ def addresses @addresses ||= Addresses.new(self) end - def balance(min_conf=BitWallet.config.min_conf) + def balance(min_conf=BitWallet.min_conf) client.getbalance(self.name, min_conf) end def send_amount(amount, options={}) if options[:to] @@ -26,17 +26,17 @@ end client.sendfrom(self.name, options[:to], amount, - BitWallet.config.min_conf) + BitWallet.min_conf) rescue Bitcoin::Errors::RPCError => e parse_error e.message end def total_received - client.getreceivedbyaccount(self.name, BitWallet.config.min_conf) + client.getreceivedbyaccount(self.name, BitWallet.min_conf) end def ==(other_account) self.name == other_account.name end @@ -55,10 +55,10 @@ addresses_values[address] = value end txid = client.send_many(self.name, addresses_values, - BitWallet.config.min_conf) + BitWallet.min_conf) txid rescue => e parse_error e.message end