Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
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

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

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.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!