File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class RetrieveTransaction:
49
49
publicKey : str
50
50
operation : str
51
51
metadata : typing .Optional ["str" ]
52
- asset : str
52
+ asset : strawberry . JSON
53
53
signerPublicKey : str
54
54
55
55
@strawberry .type
@@ -63,7 +63,7 @@ class PrepareAsset:
63
63
signerPublicKey : str
64
64
signerPrivateKey : str
65
65
recipientPublicKey : str
66
- asset : str
66
+ asset : strawberry . JSON
67
67
68
68
@strawberry .type
69
69
class Query :
@@ -80,7 +80,7 @@ def getTransaction(self, id: strawberry.ID) -> RetrieveTransaction:
80
80
signerPublicKey = data ["inputs" ][0 ]["owners_before" ][0 ],
81
81
operation = data ["operation" ],
82
82
metadata = data ["metadata" ],
83
- asset = str ( data ["asset" ])
83
+ asset = data ["asset" ]
84
84
)
85
85
return payload
86
86
@@ -92,7 +92,7 @@ def postTransaction(self, data: PrepareAsset) -> CommitTransaction:
92
92
operation = data .operation ,
93
93
signers = data .signerPublicKey ,
94
94
recipients = [([data .recipientPublicKey ], data .amount )],
95
- asset = ast . literal_eval ( data .asset ) ,
95
+ asset = data .asset ,
96
96
)
97
97
98
98
# fulfill the tnx
You can’t perform that action at this time.
0 commit comments