metaplex-foundation / sugar

Candy Machine Rust CLI.
Apache License 2.0
206 stars 118 forks source link

[Bug]: inconsistent number handling in Candy Guard config #494

Open 21e8 opened 2 hours ago

21e8 commented 2 hours ago

Issue description

  1. initialize config with a tokenGuard with of amount X whereas X has 9 decimals
  2. run deploy, token guard add, token guard update, token guard show ...
  3. it will show Xe9
  4. change amount to Y
  5. run token guard update token guard show ...
  6. it will show Y

Relevant log output

No response

Priority this issue should have

Medium (should be fixed soon)

21e8 commented 2 hours ago

should be easy to fix, having a look at it