Hello! 👋 I am not sure if thats correct channel to ask for this, its my first post there. I am facing compiling error when trying to deploy smart contract on sepolia testnet

Sep 13, 2023, 8:18 AM
I tried set up various gas limit, even 30-90mln, still errors 😬
Smart contract im trying to deploy (github) https://github.com/techaddict0x/token/blob/main/fee%20no%20rewards.txt
Sep 13, 2023, 8:19 AM
Sep 13, 2023, 12:30 PM
Ohh, you are right, it looks like it mat not work on sepolia 🤔
Sep 13, 2023, 2:12 PM
the cool thing about EVM is, you always know.
It's deterministic
you can 100% say that contract is not on Sepolia
write this in your mind and you won't do that error again ☺️
In your constructor you're assigning an interface to that address and call a function like it's a contract.
On sepolia, on that address, there is no code.
So the execution will revert
contracts that works on a chain doesn't always work on another chain for different chain state or chain specific characteristics
in your case is different chain state (there is no code on that address)
Sep 13, 2023, 2:17 PM
Ohh 😮 it make sense now. Thanks bro! I thought it will work, i didnt know that. Big Thanks 🙏
Bro, you are an expert. Im very very grateful, i spent second day on it, you fixed this in snap of fingers 🤌 Appreciate you alot, now it worked :D
Deployed contract without issues. Thanks! 🙏
@karola96 @satisp U guys really made my day! 🍻
When im rich I'll come there and share some 😂 but so far still poor lmao
Im wondering for example if i want to make presale, do i need to have some code implemented in token or i can prepare presale script for any token? 🤔
Sep 13, 2023, 3:34 PM
the second one
approve + transferFrom
Sep 13, 2023, 3:41 PM

© 2024 Draquery.com All rights reserved.