diff --git a/lib/src/streams/download.dart b/lib/src/streams/download.dart index 5a7d63f..0e46e0d 100644 --- a/lib/src/streams/download.dart +++ b/lib/src/streams/download.dart @@ -207,18 +207,16 @@ class TransactionData { } void parseData(Map jsonData) { - var txData = jsonData['transaction']; - - anchor = txData['anchor']; - owner = txData['owner']['key']; - target = txData['recipient']; - signature = txData['signature']; - dataSize = int.parse(txData['data']['size']); - isDataItem = txData['bundledIn'] != null; - quantity = int.parse(txData['quantity']['winston']); - reward = int.parse(txData['fee']['winston']); - - var downloadedTags = txData['tags']; + anchor = jsonData['anchor']; + owner = jsonData['owner']['key']; + target = jsonData['recipient']; + signature = jsonData['signature']; + dataSize = int.parse(jsonData['data']['size']); + isDataItem = jsonData['bundledIn'] != null; + quantity = int.parse(jsonData['quantity']['winston']); + reward = int.parse(jsonData['fee']['winston']); + + var downloadedTags = jsonData['tags']; tags = []; for (var tag in downloadedTags) { tags.add(createTag(tag['name'], tag['value']));