lib/tapyrus/tx_in.rb in tapyrus-0.3.4 vs lib/tapyrus/tx_in.rb in tapyrus-0.3.5

- old
+ new

@@ -28,19 +28,19 @@ end def self.parse_from_payload(payload) buf = payload.is_a?(String) ? StringIO.new(payload) : payload i = new - hash, index = buf.read(36).unpack('a32V') + hash, index = buf.read(36).unpack("a32V") i.out_point = OutPoint.new(hash.bth, index) sig_length = Tapyrus.unpack_var_int_from_io(buf) if sig_length == 0 i.script_sig = Script.new else i.script_sig = Script.parse_from_payload(buf.read(sig_length)) end - i.sequence = buf.read(4).unpack('V').first + i.sequence = buf.read(4).unpack("V").first i end def coinbase? out_point.coinbase? @@ -50,10 +50,10 @@ p = out_point.to_payload unless use_malfix p << Tapyrus.pack_var_int(script_sig.to_payload.bytesize) p << script_sig.to_payload end - p << [sequence].pack('V') + p << [sequence].pack("V") p end def to_h sig = script_sig.to_h