Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

335
Visualizações
How do I make imported ERC20 Token functions private?

I'm designing a token to fit the ERC20 standard in Remix, and I'd like to make all the default functions that come with importing the ERC20 interface private. Is there any way to do this? Here's a screenshot of the functions I'm talking about once you deploy using Injected Web3, and also the list of imports we're using Imports Example of functions I'm trying to hide

over 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can not change the visibility of an inherited function. Depending on the inherited contract, however, you can override it to be pointless.

You can do it in with openzeppelin's ERC20 too. All ERC20 public functions are virtual. So with a little workaround like this:

 function transfer(address to, uint256 amount) public virtual override returns (bool) {
        return false;
    }

Your exposed transfer function is now pointless.

over 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Assistente virtual