We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f0c37c commit ceccc14Copy full SHA for ceccc14
src/types/amount.spec.ts
@@ -51,6 +51,11 @@ describe('AlgoAmount conversions', () => {
51
expect(new AlgoAmount({ algo: 5n }).microAlgo).toBe(5_000_000n)
52
})
53
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
+
59
test('handles max supply of Algos (10 billion) with bigint', () => {
60
const maxSupplyMicroAlgos = 10_000_000_000_000_000n
61
const amount = AlgoAmount.MicroAlgos(maxSupplyMicroAlgos)
0 commit comments