Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 2aff441

Browse files
authored
Confusion with decimals (#3187)
If decimals for the mint are set to "9", then to mint 100 tokens, you'd need to enter 100000000000 unless I am mistaken?
1 parent 93e2d1b commit 2aff441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/token.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ await mintTo(
302302
mint,
303303
tokenAccount.address,
304304
mintAuthority,
305-
100
305+
100000000000 // because decimals for the mint are set to 9
306306
)
307307
```
308308

0 commit comments

Comments
 (0)