This is an automated email from the ASF dual-hosted git repository.

apratim pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-resilientdb-graphql.git


The following commit(s) were added to refs/heads/main by this push:
     new 34f89c9  Update app.py
34f89c9 is described below

commit 34f89c9d7d3ea0269f771909498153fc4bbc1d8e
Author: Apratim Shukla <[email protected]>
AuthorDate: Tue Mar 11 03:35:23 2025 -0700

    Update app.py
---
 app.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/app.py b/app.py
index 5f769e4..dcea825 100644
--- a/app.py
+++ b/app.py
@@ -49,7 +49,7 @@ class RetrieveTransaction:
     publicKey: str
     operation: str
     metadata: typing.Optional["str"]
-    asset: str
+    asset: strawberry.JSON
     signerPublicKey: str
 
 @strawberry.type
@@ -63,7 +63,7 @@ class PrepareAsset:
     signerPublicKey: str
     signerPrivateKey: str
     recipientPublicKey: str
-    asset: str
+    asset: strawberry.JSON
 
 @strawberry.type
 class Query:
@@ -80,7 +80,7 @@ class Query:
             signerPublicKey=data["inputs"][0]["owners_before"][0],
             operation=data["operation"],
             metadata=data["metadata"],
-            asset=str(data["asset"])
+            asset=data["asset"]
         )
         return payload
 
@@ -92,7 +92,7 @@ class Mutation:
         operation=data.operation,
         signers=data.signerPublicKey,
         recipients=[([data.recipientPublicKey], data.amount)],
-        asset=ast.literal_eval(data.asset),
+        asset=data.asset,
         )
 
         # fulfill the tnx

Reply via email to