Copypaste contract to BSC test net, but no Token Tracker and no supply?

I copied the source code from the below

2 Likes

Hey, welcome!
I am not familiar with BSC-Chain, maybe you can ask at their forum for help.

Can you deploy this contract on the BSC-Testnet? But it seems like all contract address you use is on the BSC-Mainnet, such as at line758:

 IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);\

And I think you should deploy the contract SafeMoon.

1 Like

Hi @jovan,

Welcome to the community :wave:

I would recommend against just copy/pasting and deploying. The contract could have vulnerabilities or you could fail to configure it properly. Either could lead to loss of funds.

If you are looking for a developer, you could post using the Developer Wanted tag https://forum.openzeppelin.com/tag/developer-wanted

As @Skyge advised the contract is referring to the address of another contract which I assume doesn’t exist on the testnet at that address.

1 Like

@jovan did you figure out why this was happening?

3 Likes

hey even i deployed to main net as well but no tokens and supply deleted lock time also
anybody know where we r going wrong?

Hi, welcome! :wave:

I think when you deploy the contract, you should check the whether the contract address is right, does it exist on the net you are going to deploy.

1 Like

Hi, welcome! :wave:

I am not sure, please provide more details

1 Like

I tried deploying safemoon contract using truffle but I’m getting some error and I cannot deploy the contract even on mainnet. Can someone please help me? unknown

Hi, welcome! :wave:

Just like the error message, please check your constructor parameters.

Hello, I’m also getting the same error trying to deploy to Etherium Ropsten testnet instead of BSC. I have changed the UniSwapV2Router02 to Ropsten address. Here is the code. I’m really stuck here, could someone help please? Thanks

constructor () public {
        _rOwned[_msgSender()] = _rTotal;
        
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
        //  // Create a uniswap pair for this new token
        uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
            .createPair(address(this), _uniswapV2Router.WETH());

        // // set the rest of the contract variables
        uniswapV2Router = _uniswapV2Router;
        
        //exclude owner and this contract from fee
        _isExcludedFromFee[owner()] = true;
        _isExcludedFromFee[address(this)] = true;
        
        emit Transfer(address(0), _msgSender(), _tTotal);
    }

Deploy Error:

truffle deploy --network ropsten

Error:  *** Deployment Failed ***

    "XXXX" hit a require or revert statement somewhere in its constructor. Try:
       * Verifying that your constructor params satisfy all require conditions.
       * Adding reason strings to your require statements.