Skip to content

Commit 2e60651

Browse files
committed
chore: merge conflict fixes
1 parent fd06592 commit 2e60651

File tree

3 files changed

+16
-22
lines changed

3 files changed

+16
-22
lines changed

.github/workflows/api_clients_ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ jobs:
120120
uses: actions/setup-python@v5
121121
with:
122122
python-version: '3.10'
123-
cache: 'poetry'
124-
cache-dependency-path: 'api/api_clients/python/pyproject.toml'
125123

126124
- name: Test Python client
127125
working-directory: api/api_clients/python

api/oas_templates/python/custom_tests/test_transactions.mustache

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ from algorand_algod_client.api.algod_api import AlgodApi
1414
from algorand_algod_client.exceptions import ApiException
1515
from algorand_algod_client.models.transaction_params200_response import TransactionParams200Response
1616
from algokit_transact import (
17-
TransactionHeader,
1817
encode_transaction,
19-
PayTransactionFields,
2018
TransactionType,
2119
attach_signature,
2220
Transaction,
21+
PaymentTransactionFields,
2322
Address,
2423
)
2524

@@ -59,16 +58,15 @@ def create_test_transaction(
5958
bytes: Signed transaction
6059
"""
6160
txn = Transaction(
62-
header=TransactionHeader(
63-
transaction_type=TransactionType.PAYMENT,
64-
fee=params.min_fee,
65-
first_valid=params.last_round,
66-
last_valid=params.last_round + 1000,
67-
sender=Address(address=sender.address, pub_key=sender.public_key),
68-
genesis_hash=base64.b64decode(params.genesis_hash),
69-
genesis_id=params.genesis_id,
70-
),
71-
pay_fields=PayTransactionFields(
61+
62+
transaction_type=TransactionType.PAYMENT,
63+
fee=params.min_fee,
64+
first_valid=params.last_round,
65+
last_valid=params.last_round + 1000,
66+
sender=Address(address=sender.address, pub_key=sender.public_key),
67+
genesis_hash=base64.b64decode(params.genesis_hash),
68+
genesis_id=params.genesis_id,
69+
payment=PaymentTransactionFields(
7270
amount=int(1e6),
7371
receiver=Address(address=receiver.address, pub_key=receiver.public_key)
7472
),

api/oas_templates/typescript/custom_tests/transactions.test.mustache

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ const createSignedTxnHttpFile = (
2424
}
2525

2626
const txn: Transaction = {
27-
header: {
28-
transactionType: 'Payment',
29-
...transactionHeaderParams,
30-
sender: { address: String(sender.addr), pubKey: sender.publicKey },
31-
note: note,
32-
},
33-
payFields: {
27+
transactionType: 'Payment',
28+
payment: {
3429
amount: BigInt(amount),
3530
receiver: receiver,
36-
}
31+
},
32+
sender: { address: String(sender.addr), pubKey: sender.publicKey },
33+
note: note,
34+
...transactionHeaderParams,
3735
};
3836

3937
const encodedTxn = encodeTransaction(txn);

0 commit comments

Comments
 (0)