Giter VIP home page Giter VIP logo

Comments (12)

alexfisher avatar alexfisher commented on September 14, 2024 1

Also mentioned in issue #56

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024 1

Thanks @alexfisher , I didn't see the previous issue #56

from burner-wallet.

dbe avatar dbe commented on September 14, 2024 1

@riusricardo

Ah, sorry I don't think I got across what I meant to. You are totally right about the BalanceOf function and fix.

What I meant is that the DenDai contract currently in the BurnerWallet was put in master a bit prematurely I think. This normally wouldn't be too bad, but because the current test suite breaks if any one thing breaks, and the test suite is the current way to deploy contracts locally, it is causing these issues.

I was just suggesting not to worry too much about the specifics of that contract or implementation yet, as it is basically a quick implementation for testing UI. I'm working on the more final version of the SC here: Link

from burner-wallet.

dbe avatar dbe commented on September 14, 2024 1

Just a word of warning. The OZ libs that are now part of the repo are there for a very temporary fix. The ERC20 contract is not the standard one from OZ, but its modified to get the Burner/BuffiDai contracts to work.

We are going to be getting rid of those, adding in a more robust version of them which depends only on the standard versions of OZ, deleting the OZ contracts from the repo, and pulling them in only thru an npm dependency rather than an explicitly committed folder.

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024

Just a comment to the PR #56. Removing the private definition and not changing it to internal will default it to public. Probably not super insecure but there is a public function (balanceOf) to get the actual balance so there is no need to keep _balances as public.

from burner-wallet.

dbe avatar dbe commented on September 14, 2024

That contract really shouldn't even be checked into master tbh. Its a work in progress which should be in a branch, or at least not involved in the main test suite yet.

Don't worry about security or code for that contract because it doesn't look even remotely like it will once we actually get it to a production ready state.

If you are having test blocking issues I'd just suggest hacking around it to get whatever you need to get done. I'll get this taken care of today so it doesn't block people going forward.

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024

@dbe The contract is in production releases [email protected] (Solidity 0.4.24)
It is also available in the latest release [email protected] (Solidity 0.5.0)

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024

Closing because the OpenZeppelin libraries are now part of the repo. No more need to track this issue.

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024

I agree. But the fix breaks no compatibility with the ERC20 token. Changing to internal instead of private could be a permanent fix. OZ has that variable as private in new releases.
The ERC20 contract with the fix could be the only one that we should keep in the repo.

from burner-wallet.

dbe avatar dbe commented on September 14, 2024

With the new smart contract there is no need to have it be internal. We are using the contract APIs as intended with the new stuff.

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024

I'm not getting what you mean with "new smart contract". Are you working on a new PR?
If not, I'll take another look later and work in some upgrades.

from burner-wallet.

riusricardo avatar riusricardo commented on September 14, 2024

@dbe I see thew new contract branch. https://github.com/austintgriffith/burner-wallet/blob/new-vend/contracts/ERC20Vendable/ERC20Vendable.sol

from burner-wallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.