From 529ef38415980b213e904ba9c5db172896dc60e3 Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Tue, 12 Mar 2019 15:44:56 -0700 Subject: [PATCH] server: Add the address to the LightWalletTransaction.Output --- .../app/com/xsn/explorer/models/LightWalletTransaction.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/com/xsn/explorer/models/LightWalletTransaction.scala b/server/app/com/xsn/explorer/models/LightWalletTransaction.scala index 322e7f59..9fbcc1fd 100644 --- a/server/app/com/xsn/explorer/models/LightWalletTransaction.scala +++ b/server/app/com/xsn/explorer/models/LightWalletTransaction.scala @@ -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( @@ -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]