mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
fix TransactionLink.to_uri to use Output
This commit is contained in:
parent
33f05f7f6b
commit
6fb48dd172
@ -191,10 +191,10 @@ class TransactionLink(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def to_uri(self, path=''):
|
def to_uri(self, path=''):
|
||||||
if self.txid is None and self.cid is None:
|
if self.txid is None and self.output is None:
|
||||||
return None
|
return None
|
||||||
return '{}/transactions/{}/conditions/{}'.format(path, self.txid,
|
return '{}/transactions/{}/outputs/{}'.format(path, self.txid,
|
||||||
self.cid)
|
self.output)
|
||||||
|
|
||||||
|
|
||||||
class Output(object):
|
class Output(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user