1

In the Ask! framework documentation here it says Ask! doesn't provide any "overflow protection", whereas ink! does, but it doesn't explain why. Why doesn't Ask! framework provide any "overflow protection"?

1
  • 2
    ink! is written in rust and rust provides overflow/underflow protection, that's why by default ink! support overflow protection. May be AssemblyScript which is used by Ask! doesn't support overflow protection.
    – Ganesh11
    Dec 29, 2022 at 1:21

1 Answer 1

2

Built-in overflow protection doesn't exist in AssemblyScript as of now: https://github.com/AssemblyScript/assemblyscript/issues/447.

You should be able to use a safe arithmetic library though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.