Skip to content

Commit ceccc14

Browse files
committed
chore: add max supply in algo test
1 parent 5f0c37c commit ceccc14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/types/amount.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ describe('AlgoAmount conversions', () => {
5151
expect(new AlgoAmount({ algo: 5n }).microAlgo).toBe(5_000_000n)
5252
})
5353

54+
test('accepts max supply of Algos (10 billion)', () => {
55+
expect(new AlgoAmount({ algo: 10_000_000_000n }).microAlgo).toBe(10_000_000_000_000_000n)
56+
expect(new AlgoAmount({ algo: 10_000_000_000 }).microAlgo).toBe(10_000_000_000_000_000n)
57+
})
58+
5459
test('handles max supply of Algos (10 billion) with bigint', () => {
5560
const maxSupplyMicroAlgos = 10_000_000_000_000_000n
5661
const amount = AlgoAmount.MicroAlgos(maxSupplyMicroAlgos)

0 commit comments

Comments
 (0)