Skip to content

Commit 8956e45

Browse files
authored
Merge pull request #517 from algorandfoundation/fix/stpf-type-tweaks
fix: correct the stpf type
2 parents 6d9e257 + 1f91d01 commit 8956e45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/indexer_client/src/models/transaction-state-proof.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ObjectModelMetadata } from '@algorandfoundation/algokit-common'
2-
import { bigIntCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'
2+
import { numberCodec, ObjectModelCodec } from '@algorandfoundation/algokit-common'
33
import type { IndexerStateProofMessage } from './indexer-state-proof-message'
44
import { IndexerStateProofMessageMeta } from './indexer-state-proof-message'
55
import type { StateProofFields } from './state-proof-fields'
@@ -15,7 +15,7 @@ export type TransactionStateProof = {
1515
/**
1616
* \[sptype\] Type of the state proof. Integer representing an entry defined in protocol/stateproof.go
1717
*/
18-
stateProofType?: bigint
18+
stateProofType?: number
1919
stateProof?: StateProofFields
2020
message?: IndexerStateProofMessage
2121
}
@@ -28,7 +28,7 @@ export const TransactionStateProofMeta: ObjectModelMetadata<TransactionStateProo
2828
name: 'stateProofType',
2929
wireKey: 'state-proof-type',
3030
optional: true,
31-
codec: bigIntCodec,
31+
codec: numberCodec,
3232
},
3333
{
3434
name: 'stateProof',

packages/transact/src/transactions/state-proof.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
export type StateProofTransactionFields = {
55
/** State proof type */
6-
stateProofType?: number
6+
stateProofType: number
77

88
/** State proof */
99
stateProof?: StateProof

0 commit comments

Comments
 (0)