lib/bitcoin/builder.rb in bitcoin-ruby-0.0.6 vs lib/bitcoin/builder.rb in bitcoin-ruby-0.0.7

- old
+ new

@@ -430,14 +430,16 @@ # # t.output do |o| # o.value 12345 # o.script {|s| s.recipient address } # end + # + # t.output {|o| o.to "deadbeef", OP_RETURN } class TxOutBuilder attr_reader :txout def initialize - @txout = P::TxOut.new + @txout = P::TxOut.new(0) end # Set output value (in base units / "satoshis") def value value @txout.value = value