hi my smart contract presalemint function doesn't work, when i approve transaction it fails. Anybody know how to solve this?

Jul 22, 2022, 5:59 PM
Anybody know?
Jul 22, 2022, 7:41 PM
Excuse me ser are you using notepad to code?
Jul 22, 2022, 8:10 PM
Hahaha no 😀 i use visual studio code
I just copied it in a word file to take screenshot
Jul 22, 2022, 8:12 PM
well first off you don't need "require(_amount <= presaleLimit)" because next check should take care of that. and your for loop is also bothering me. try starting i at 1 and using i <= _amount
also check _mintInternal because that could also be a source of errors
Jul 22, 2022, 8:20 PM
Thank you, i think i solved problem, now i am trying, i will let you know
Jul 22, 2022, 8:21 PM

© 2024 Draquery.com All rights reserved.