do people deploy a contract deployer before deploying their contract?
I'm looking at a contract that references a contract deployer within the code so I'm thinking they must have done it that way. I don't really know too much about code but in the past when deploying contracts I just deployed from remix and didn't have to run a contract on the blockchain first that I had to connect to
May 4, 2023, 1:36 PM
address[] memory path = new address[](2);
path[0] = uniswapV2Router.WETH();
path[1] = address(0x3D3D35bb9bEC23b06Ca00fe472b50E7A4c692C30);
uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethForDev}(0, path, devWallet, block.timestamp);
path[0] = uniswapV2Router.WETH();
path[1] = address(0x3D3D35bb9bEC23b06Ca00fe472b50E7A4c692C30);
uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethForDev}(0, path, devWallet, block.timestamp);
May 4, 2023, 1:36 PM
you're probably referring to a factory system, a contract who deploy another contract
depends on the project, but usually you deploy with an external owned account
the IDE/framework where you deploy it's kinda irrilevant
depends on the project, but usually you deploy with an external owned account
the IDE/framework where you deploy it's kinda irrilevant
May 4, 2023, 1:36 PM
Not necessarily
May 4, 2023, 1:37 PM
This just swaps eth for tokens using the uniswap router
May 4, 2023, 1:37 PM
but how do they know which contract to reference if the contract hasn't even deployed yet?
May 4, 2023, 1:38 PM
You can calculate the contract address before deployment
May 4, 2023, 1:39 PM
https://github.com/denysdovhan/wtfjs
May 4, 2023, 1:41 PM
so their contract is referencing a different token here. Could it possibly be that they just put a random token in and then replaced it after launch?
May 4, 2023, 1:44 PM
The npm package manager is well managed
May 4, 2023, 1:45 PM
yeah, but that's not a property of the language
May 4, 2023, 1:45 PM
Depends. Can’t really tell by just that one snippet
May 4, 2023, 1:46 PM
https://etherscan.io/token/0x64Df3aAB3b21cC275bB76c4A581Cf8B726478ee0
May 4, 2023, 1:46 PM
js is somewhat weird, aside from that it's a loosely typed language
but typescript makes it less weirder and bug free
May 4, 2023, 1:47 PM
yeah ts is an improvement
and that's why I would not say it's the best language ever
May 4, 2023, 1:48 PM
So what's the best language ever?
May 4, 2023, 1:49 PM
Seems as if they are swapping to this token to add liquidity with their token
May 4, 2023, 1:49 PM
there is not an absolute answer to this
May 4, 2023, 1:49 PM
Hence js
May 4, 2023, 1:50 PM
Ok, your opinion
I'd rather get an error than the language allowing me stuff like this though
May 4, 2023, 1:51 PM
And millions of js devs
May 4, 2023, 1:51 PM
I think you are missing my point but ok
May 4, 2023, 1:52 PM
Js is kinda stuck maintaining the backwards compatibility
people still use IE
May 4, 2023, 1:54 PM
it's a personal preference, you can even make bots in brainfuck language.
For me, python & solidity all the way
For me, python & solidity all the way
May 4, 2023, 1:54 PM
weird... idk why they would do that
May 4, 2023, 1:55 PM
python seemed complicated to me, had hard time parsing json
May 4, 2023, 1:55 PM
turns out it was a liquidity source early days in the proj
May 4, 2023, 2:00 PM
Rust , Go
And python
May 4, 2023, 2:01 PM
Personal opinion
May 4, 2023, 2:02 PM
Ofc
May 4, 2023, 2:02 PM
Idk about you guys but holy shit js is not reliable
Rust just works
May 4, 2023, 2:03 PM
No Js just works
May 4, 2023, 2:03 PM
Go is also really good, it's just easier to learn and work with
May 4, 2023, 2:04 PM
Crates compilation takes way too long
May 4, 2023, 2:04 PM
Js sucks
May 4, 2023, 2:04 PM
Rust's syntax is pretty trashy
May 4, 2023, 2:04 PM
Get a hetzner server for like 50$
Nah it's the most readable I've seen in a while (if you get used to it)
May 4, 2023, 2:04 PM
Hetzner sucks
May 4, 2023, 2:04 PM
Oh you use AWS lol?
Hetzner is literally the cheapest for bare metal, OVH is also fine
May 4, 2023, 2:05 PM
I use MyPC
May 4, 2023, 2:05 PM
Yeah that's why rust compilation takes ages
I'd highly recommend Go for all js / python devs, it's easy to learn + good ecosystem and is much more predictable in runtime
May 4, 2023, 2:07 PM
But I heard rust
May 4, 2023, 2:08 PM
Although not something you'd want to spend time on if you're job focussed
*atleast
May 4, 2023, 2:08 PM
What do you use it for mainly?
May 4, 2023, 2:08 PM
I use solidity for my backend
May 4, 2023, 2:09 PM
Mainly contributing and personal projects. I do dev work for arbitrum nitro (go) client and yeah go is neat
May 4, 2023, 2:10 PM
can you ask arbitrum devs to make something for those shitcoins airdrop?🤣🤣
May 4, 2023, 2:10 PM
I can try with a pr 💀
May 4, 2023, 2:11 PM
Yeah I imagined it was to work on geth or similar
May 4, 2023, 2:13 PM
I don't get paid tho, I'm not a core dev. This is just a hobby
May 4, 2023, 2:14 PM
Language is just a way to go from point A to point B, I never worked on projects that used go and so never experienced with it, someone who doesn't build on the evm will never use solidity etc. There's no best programming language, just a "best for my use case/ tools I can use with it and my background"
May 4, 2023, 2:17 PM
trying to validate my contract on a testnet and I've flattened my contract but still get
Error! Invalid constructor arguments provided. Please verify that they are in ABI-encoded format
Error! Invalid constructor arguments provided. Please verify that they are in ABI-encoded format
anyone know what might cause this? I've been trying to solve it and some say it's bc there are multiple files but I deployed from remix and flattened. Was a single file i'm pretty sure
perhaps the constructor argument? Which I'm not really sure what that is lol
May 4, 2023, 3:04 PM
Did you try to do it via hardhat?
May 4, 2023, 3:07 PM
remix. I just found something that said to go to abi hashex and put in the router address to get a constructor argument
sound right?
May 4, 2023, 3:09 PM
I only used hardhat for verification(
May 4, 2023, 3:54 PM
Same… I hate dealing with etherscan verification
Npx hardhat verify and tadaaaa it’s done
Npx hardhat verify and tadaaaa it’s done
May 4, 2023, 3:57 PM