Git Product home page Git Product logo

Comments (11)

lambdalf-dev avatar lambdalf-dev commented on July 20, 2024

Why not just have an owner() function that returns the owner of the DN404 base contract?

from dn404.

wwhchung avatar wwhchung commented on July 20, 2024

Opensea does not rely on owner or OwnershipTransferred because it’s easily spoofable.

from dn404.

lambdalf-dev avatar lambdalf-dev commented on July 20, 2024

Event easily spoofable for sure, owner is what the contract considers owner.

from dn404.

lambdalf-dev avatar lambdalf-dev commented on July 20, 2024

Proposed solution here:
#43

from dn404.

wwhchung avatar wwhchung commented on July 20, 2024

Event easily spoofable for sure, owner is what the contract considers owner.

Yup, but OpenSea typically doesn't use this to group things under an address's 'created tokens' because that can also be faked. i.e. I can hardcode the owner() to return as you, and have these tokens as 'created by you' if OpenSea trusted the contract return values as the source of provenance.

from dn404.

lambdalf-dev avatar lambdalf-dev commented on July 20, 2024

Well, if I'm the owner of the contract, it makes sense that the items were created by me...

from dn404.

wwhchung avatar wwhchung commented on July 20, 2024

Well, if I'm the owner of the contract, it makes sense that the items were created by me...

Not necessarily. I could create a contract with a fake owner function and inject tokens into your collection. Similar exploit has been used in the past to make fake beeples which is why rarible and opensea moved away from relying on owner.

from dn404.

cygaar avatar cygaar commented on July 20, 2024

Yeah @wwhchung is correct here - it's extremely easy to game owner() to make it look like someone else deployed your contract

from dn404.

TechnicallyWeb3 avatar TechnicallyWeb3 commented on July 20, 2024

Why is the owner needed at all? I’ve got a version of ERC404 on my TW3404 repo that uses ERC1155 instead of ERC721 which allows for batch transfers natively.

from dn404.

lambdalf-dev avatar lambdalf-dev commented on July 20, 2024

Why is the owner needed at all?

For marketplaces collection management

from dn404.

sonicsmith avatar sonicsmith commented on July 20, 2024

Looks like a good solution would be to implement ERC-7015 since Opensea uses this for proof of ownership. (https://docs.opensea.io/docs/contract-level-metadata)

from dn404.

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.