Refactor lightwallet mod

This commit is contained in:
Aditya Kulkarni
2019-09-18 14:56:06 -07:00
parent d36b384fc4
commit 242247f80a
3 changed files with 469 additions and 450 deletions

View File

@@ -272,7 +272,7 @@ impl LightClient {
"created_in_txid" => format!("{}", txid),
"value" => nd.note.value,
"is_change" => nd.is_change,
"address" => LightWallet::address_from_extfvk(&nd.extfvk, nd.diversifier),
"address" => nd.note_address(),
"spent" => nd.spent.map(|spent_txid| format!("{}", spent_txid)),
"unconfirmed_spent" => nd.unconfirmed_spent.map(|spent_txid| format!("{}", spent_txid)),
})