mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Fixed endianness bugs
This commit is contained in:
parent
8ee3aab58a
commit
e2d92a18e3
@ -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))))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user