Contract no deploy functions in remix

:computer: Environment
Remix,

:memo:Details
Hello community.

It is my first post. First of all, I would like to congratulate you on your important informative work. Thank you!

I tell you my problem. I have to develop a token with the same style as the following. It is a very copied contract:
Save Panda token

I have copied it and taken it to remix. But when deployed there it doesn’t show the public view functions. In fact it just shows the input callData which I honestly don’t know what it is.

For testing I put the payable constructor but it asks me for a huge amount of Ethers …

Anyway, it is obvious that I am not doing things well. That is why I have come to you.
Where am I going wrong? Is it related to being a BEP-20?

Muchas gracias.

:1234: Code to reproduce

Hi @Cainuriel,

Welcome to the community. :wave:

Check when you deployed the contract that you actually deployed the contract you wanted rather than one of the contracts you are extending from.

Hello @abcoathup. … You are a hero to me, for your extensive help to everyone.
Thank you for your welcome.

I’ll pass you a screenshot of the deployment. You will check that the contract was selected correctly and the result of it.

I check that it gives me the failure you were commenting on. Has be payable?

VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance

The contract have three constructors:

Onawle Contract

constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    } 

Contract SavePanda

constructor () public {
        _rOwned[_msgSender()] = _rTotal;
        
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F); //Pancake Swap's address
         // 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;
        _isExcludedFromFee[burn()] = true;
        
        emit Transfer(address(0), _msgSender(), _tTotal);
    } 

And other call Butter

constructor () public {
        //require(owner() == milkAddress);//*
        _rOwned[_msgSender()] = _rTotal;
        
        IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
         // 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;
        _isExcludedFromFee[burn()] = true;
        //require(charity() == milkAddress);//*
        
        emit Transfer(address(0), _msgSender(), _tTotal);
    }

I get the impression that this contract “butter” is not necessary, right?

Guys I managed to fix the problem. As I suspected, in order to deploy the contract I have to remove everything related to uniswap and cakeswap. This displays the contract correctly.

If you wanted to deploy the contract with the uniswap interfaces in injected web3, you would need the uniswap testnets, right?

I found a test address for cake here:
Binance Smart change tesnet

I need something similar for the uniswap router, right?