Git Product home page Git Product logo

Comments (1)

d10r avatar d10r commented on July 4, 2024

I suspect that it verified the proxy at the first attempt, but failed with the logic contract and linking.
Our issue here is that there seems to be no way with truffle-plugin-verify to verify only the proxy contract, not the implementation. It tries to be smart and verify the logic the proxy points to. See rkalis/truffle-plugin-verify#178

In this project, we're kind of cheating, because the code of the implementation contract is outside of this project. A more correct cmdline for verification would actually be:

npx truffle run --network goerli verify SuperToken@0xA862f128b3ffE9719948869cc1C7CBC21860Cd9a --custom-proxy BurnMintSuperToken

However we don't have aSuperToken artifact here.
It probably wouldn't be too difficult to get it (since we have the ethereum-contracts npm package), but even then its bytecode would likely often not match the one currently deployed, because the package version may not match the version of the currently deployed contracts etc.

So, it will fail when trying to verify the implementation contract, but succeed with verifying the proxy contract, which is what we need.
I think it didn't fail in the past if the implementation contract was already verified, but am not sure. Maybe that changed, or maybe it's related to changes in the canonical SuperToken logic contract (it's nomore deployed by the SuperTokenFactory contract in 1.5.2+).

Long story short: I don't currently see an obvious way to properly fix this without making it more fragile.
But there's a pretty simple way to work around it: ignore the error message and manually do the "linking" between proxy and logic in the explorer.
I updated the README accordingly in this PR: https://github.com/superfluid-finance/custom-supertokens/pull/23/files

I didn't do it for 0xA862f128b3ffE9719948869cc1C7CBC21860Cd9a, so you can try it yourself.
Let me know if that's not working as expected or if you have any more questions or suggestions.
And thx for the report!

from custom-supertokens.

Related Issues (18)

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.