Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ export class Transaction implements encoding.Encodable {
),
},
{ key: 'apep', valueSchema: new OptionalSchema(new Uint64Schema()) },
{ key: 'aprv', valueSchema: new OptionalSchema(new Uint64Schema()) },
// StateProof
{ key: 'sptype', valueSchema: new OptionalSchema(new Uint64Schema()) },
{ key: 'sp', valueSchema: new OptionalSchema(StateProof.encodingSchema) },
Expand Down
7 changes: 5 additions & 2 deletions tests/5.Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2643,8 +2643,11 @@ describe('Application Resources References', () => {
const encodingData = txnWithRejectVersion.toEncodingData();
assert.strictEqual(encodingData.get('aprv'), 5);

// Note: Serialization/deserialization test temporarily removed due to msgpack decoding issue
// The core functionality works correctly as verified by other tests
// Test serialization/deserialization
const encodedTxn =
algosdk.encodeUnsignedTransaction(txnWithRejectVersion);
const decodedTxn = algosdk.decodeUnsignedTransaction(encodedTxn);
assert.strictEqual(decodedTxn.applicationCall?.rejectVersion, 5);

// Test with default rejectVersion (should be 0)
const txnDefaultRejectVersion = algosdk.makeApplicationCallTxnFromObject({
Expand Down
Loading