mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
Updated the unspent output function of Transaction according to new assets model
This commit is contained in:
parent
f527b0842d
commit
9b476d8ea8
@ -151,7 +151,7 @@ class Transaction(object):
|
|||||||
if self.operation == self.CREATE:
|
if self.operation == self.CREATE:
|
||||||
self._asset_id = self._id
|
self._asset_id = self._id
|
||||||
elif self.operation == self.TRANSFER:
|
elif self.operation == self.TRANSFER:
|
||||||
self._asset_id = self.asset['id']
|
self._asset_id = [asset['id'] for asset in self.assets][0]
|
||||||
return (UnspentOutput(
|
return (UnspentOutput(
|
||||||
transaction_id=self._id,
|
transaction_id=self._id,
|
||||||
output_index=output_index,
|
output_index=output_index,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user