1

I want to do that if another token arrives on a contract, it can be taken out by the other token.

function withdrawTeamSale() public {
        require(IBEP20(address(this)).transferFrom(msg.sender, address(this), balanceMapTeam[msg.sender]), 'Failed to transfer tokens!');
    }

Return:

Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }

it seems like a pretty basic thing, I must have overlooked something.

What could be the problem?

Thanks in advance for the answers!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.