Fixed endianness bugs

This commit is contained in:
nkohen 2018-06-25 13:53:59 -05:00
parent 8ee3aab58a
commit e2d92a18e3

View File

@ -30,7 +30,7 @@ object JsonWriters {
implicit object TransactionInputWrites extends Writes[TransactionInput] {
override def writes(o: TransactionInput): JsValue =
JsObject(
Seq(("txid", JsString(o.previousOutput.txId.hex)),
Seq(("txid", JsString(o.previousOutput.txId.flip.hex)),
("vout", JsNumber(o.previousOutput.vout.toLong)),
("sequence", JsNumber(o.sequence.toLong))))
}