Skip to content

Commit 34f89c9

Browse files
Update app.py
1 parent 2519bd9 commit 34f89c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RetrieveTransaction:
4949
publicKey: str
5050
operation: str
5151
metadata: typing.Optional["str"]
52-
asset: str
52+
asset: strawberry.JSON
5353
signerPublicKey: str
5454

5555
@strawberry.type
@@ -63,7 +63,7 @@ class PrepareAsset:
6363
signerPublicKey: str
6464
signerPrivateKey: str
6565
recipientPublicKey: str
66-
asset: str
66+
asset: strawberry.JSON
6767

6868
@strawberry.type
6969
class Query:
@@ -80,7 +80,7 @@ def getTransaction(self, id: strawberry.ID) -> RetrieveTransaction:
8080
signerPublicKey=data["inputs"][0]["owners_before"][0],
8181
operation=data["operation"],
8282
metadata=data["metadata"],
83-
asset=str(data["asset"])
83+
asset=data["asset"]
8484
)
8585
return payload
8686

@@ -92,7 +92,7 @@ def postTransaction(self, data: PrepareAsset) -> CommitTransaction:
9292
operation=data.operation,
9393
signers=data.signerPublicKey,
9494
recipients=[([data.recipientPublicKey], data.amount)],
95-
asset=ast.literal_eval(data.asset),
95+
asset=data.asset,
9696
)
9797

9898
# fulfill the tnx

0 commit comments

Comments
 (0)