We recently launched a token on bsc and one of the users accidentally sent 2.7 ETH to the contract wallet, but on ETH mainnet.
The contract was deployed via remix, using create2. Is there any way to retrieve the salt used during deployment, so that I can deploy a contract to the same address on ethereum to withdraw the funds?
the contract address: 0x2b8b05b6f7a372d3c44598813297969c438ee028 (verified on bscscan)
Apr 26, 2021, 5:59 PM
I'm by no means an expert, but wouldn't launching a contract cost close to the same amount nowadays on ETH?
Apr 26, 2021, 6:05 PM
I don't think so, gas went down by a lot, and we're talking about a very simple contract
basically Ownable + an onlyOwner function to withdraw eth
should be cheap to deploy
and 2.7 eth would be $6700
Apr 26, 2021, 6:06 PM
Ohh I see what you mean, just simply a function to release funds wrote to the address, gotcha. I would imagine that will work fine, since the address is just holding the ETH anyway
Apr 26, 2021, 6:06 PM
so I guess it's worth rescuing
yeah, the only issue is, I have no idea how to deploy it to the right address
with create I would just have to get the right tx nonce
but this is create2
and I have no idea how remix ide generates salt on deployment
Apr 26, 2021, 6:07 PM