Help with deploying a contract clone

This is more of a curiosity question than anything. However, when I copy an ERC20 contract from ETHERSCAN or BSCSCAN, or copy the safemoon.sol contract from github and try to deploy it via Remix Deployer (on the correct network) on the testnet or mainnet do I create a contract successfully, but there are no tokens minted and no token tracker. When I use the import function then it works.

I guarantee this is something simple I’m missing. And yes, I understand that deploying a copied contract may contain vulnerabilities and is not best practice, and if I move forward with this project
I’ll be hiring a developer, however I just want to understand this issue.

Thank you

Hi DiamondDanny, welcome to the forums!

If you deployed SafeMoon exactly as is, you should have tokens.

When you created the contract, did you validate it?

Depending on the wallet, you will need to add the custom token to your wallet so it can reflect your balance properly.

Hi, welcome! :wave:

Yeah, just like Tsushima_Yoshiko said, If you deployed SafeMoon exactly as is, you should have tokens., so please make sure when you deploy contract, that is before you clicking the Deploy button in the Remix, you should select the correct contract to deploy rather than use the default contract.

Please send me inbox, I need hire you for service

Hi, i tryed too to clone safemoon on Remix, but when I deploy it i get an error:

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Internal JSON-RPC error. { "code": -32000, "message": "gas required exceeds allowance (30000000) or always failing transaction" }

I’m using Binance testnet, and from Remix I selected Injected Web3. What is the problem?

To get started please follow the tutorial over at OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat

It’s a great guide to get you a dev environment set up and ready for action. After setting up your dev environment and getting things working, then you can try to deploy custom contracts.

Hey, did you ever make progress on this? I am also just experimenting.

I Deployed a copy of the safemoon contract on remix using web3 after successfully writing and deploying my own simpler contracts.

When I deploy the safemoon one, I see the deployment on bscscan but no coins are transferred. I also tried validating the contract and still no coins in the creator wallet.

Was wondering if it has anything to do with the lock functions?