Alright can anyone modify a contract for me? Shouldn't take much for someone that know what they're doing
Dec 17, 2021, 2:09 AM
I've been here for the past 8 hours I believe lol
Can't get this to work!!
I've lost count
It's either the transaction getting reverted to a failed state, while I use java... or a gas error something when I use web3
I have no prior experience apart from some basic C++ at school a few years back haha ๐
Dec 17, 2021, 2:14 AM
I could help once I'm free in a few hours. Feel free to DM me
Dec 17, 2021, 2:15 AM
If you share the exact text of what youโre seeing wrt to errors and the code you are trying to build we can help. Without that not much we can do unfortunately
Dec 17, 2021, 2:16 AM
Gimme a min
This one happened with web3
This is java's problem
I'll go to sleep now, if anyone wants to help me clone this contract succesfully, dm me please :(
Dec 17, 2021, 2:28 AM
should be payable
Dec 17, 2021, 2:31 AM
What does that mean
That it should work on mainnet?
Dec 17, 2021, 2:32 AM
Give me the code. I'll take a look
Dec 17, 2021, 2:32 AM
I'll give you the contract I'm trying to copy
Dec 17, 2021, 2:32 AM
๐ok
Dec 17, 2021, 2:32 AM
https://bscscan.com/address/0x4cd980dD7f319688088a7d26F982b95719203EAC#code
I simply changed the name and the fees (but even with original name and fees, the errors are the same)
Dec 17, 2021, 2:33 AM
Are you having problems with deployment?
Dec 17, 2021, 2:34 AM
Yeah, I've copied it, changed a few things and I'm testing it
no compile errors I think, it's green
Dec 17, 2021, 2:34 AM
You need to modify it this way
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E);
replace
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0xD99D1c33F9fC3444f8101754aBC46c52416550D1);
There is no corresponding router contract on the test network
Dec 17, 2021, 2:36 AM
I see, and when I wanna launch it on mainnet?
I put the old one back in?
Dec 17, 2021, 2:37 AM
Dec 17, 2021, 2:37 AM
Oh was it written all this time?
Dec 17, 2021, 2:37 AM
You can publish to the official web site when there are no problems with your test site
yes
Dec 17, 2021, 2:38 AM
So I've been hours, while the contract worked fine...
Dec 17, 2021, 2:38 AM
Different networks have different Router addresses
What do you mean
Dec 17, 2021, 2:38 AM
I mean I've been trying to fix this for hours haha ๐
Dec 17, 2021, 2:39 AM
Is it settled now?
Is that problem solved now? You test it
Dec 17, 2021, 2:40 AM
I believe it has
Web3 works now, I love you :P
Dec 17, 2021, 2:41 AM
thx
Where are you from?
Dec 17, 2021, 2:42 AM
Italy
Now I gotta figure out what the buttons do and I'm a pro
Dec 17, 2021, 2:42 AM
hhh,Come on
I thought we could add a friend so we could learn solidity together later
What do you think?
Dec 17, 2021, 2:43 AM
Sounds good, I need it to launch my own project in the future
Dec 17, 2021, 2:45 AM