lib/graphdb/model/tx_out.rb in bitcoin2graphdb-0.4.0 vs lib/graphdb/model/tx_out.rb in bitcoin2graphdb-0.4.1

- old
+ new

@@ -39,12 +39,10 @@ end def self.find_by_outpoint(txid, n) tx = Graphdb::Model::Transaction.with_txid(txid).first if tx - tx.outputs.each{|o| - return o if o.n == n - } + tx.outputs.find_by(n: n) end end end end \ No newline at end of file