Skip to content

Commit

Permalink
server: Add the address to the LightWalletTransaction.Output
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Mar 12, 2019
1 parent 10f1932 commit 529ef38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.xsn.explorer.models

import com.xsn.explorer.models.values.{Blockhash, Size, TransactionId}
import com.xsn.explorer.models.values.{Address, Blockhash, Size, TransactionId}
import play.api.libs.json.{Json, Writes}

case class LightWalletTransaction(
Expand All @@ -14,7 +14,7 @@ case class LightWalletTransaction(
object LightWalletTransaction {

case class Input(txid: TransactionId, index: Int, value: BigDecimal)
case class Output(index: Int, value: BigDecimal)
case class Output(index: Int, value: BigDecimal, address: Address)

implicit val inputWrites: Writes[Input] = Json.writes[Input]
implicit val outputWrites: Writes[Output] = Json.writes[Output]
Expand Down

0 comments on commit 529ef38

Please sign in to comment.