File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import logging
12import time
23
34import stellar_sdk
1011__all__ = ["invoke" ]
1112
1213
14+ logger = logging .getLogger (__name__ )
15+
16+
1317def invoke (
1418 contract_id : str ,
1519 function_name : str ,
@@ -61,6 +65,11 @@ def invoke(
6165 else :
6266 raise SdkError (f"Timeout - could not validate transaction: { transaction .hash } " )
6367
68+ transaction_envelope = stellar_sdk .parse_transaction_envelope_from_xdr (
69+ transaction_result .envelope_xdr , network_passphrase = network .network_passphrase
70+ )
71+ logger .debug (transaction_envelope )
72+
6473 if transaction_result .status == GetTransactionStatus .SUCCESS :
6574 transaction_meta = xdr .TransactionMeta .from_xdr (
6675 transaction_result .result_meta_xdr
Original file line number Diff line number Diff line change 1+ import pytest
2+
3+ import soroban
4+
5+
6+ @pytest .mark .skip
17def test_invoke ():
2- pass
8+ contract_id = "CC22IAGPHR4DXI73WSI4L65TTB3F5A2DF7FP5PPNIOLVX5NQWSVR4TID"
9+ source_account = "SDEUQZ7PMHT7VDP3TYZMBKUVES3W6CTXT5L2ZR5NROWQJIDE4QFUXW6Q"
10+
11+ soroban .invoke (
12+ contract_id = contract_id , function_name = "version" , source_account = source_account
13+ )
You can’t perform that action at this time.
0 commit comments