Giter Site home page Giter Site logo

Comments (5)

jtfirek avatar jtfirek commented on June 11, 2024

I have found a diff between the mode deployment and other OP stack chains:

Other OP stack chains have 0x4200000000000000000000000000000000000007 as the L2CrossDomainMessenger address and Mode's is deployed at:
L2CrossDomainMessenger 0xC0d3c0d3c0D3c0D3C0d3C0D3C0D3c0d3c0d30007

Is it possible that this diff is what is causing the SDK to not work for Mode?

from optimism.

tynes avatar tynes commented on June 11, 2024

I have found a diff between the mode deployment and other OP stack chains:

Other OP stack chains have 0x4200000000000000000000000000000000000007 as the L2CrossDomainMessenger address and Mode's is deployed at: L2CrossDomainMessenger 0xC0d3c0d3c0D3c0D3C0d3C0D3C0D3c0d3c0d30007

Is it possible that this diff is what is causing the SDK to not work for Mode?

0xC0d3c0d3c0D3c0D3C0d3C0D3C0D3c0d3c0d30007 is the implementation and not the proxy. You should interact with 0x4200000000000000000000000000000000000007.

I am not sure why this problem would exist on mode and not other chains. It is likely a bug in the sdk. cc @smartcontracts. Perhaps something with an off by one

You should consider using viem for this as the sdk has been deprecated and is no longer maintained

from optimism.

jtfirek avatar jtfirek commented on June 11, 2024

Do you have any code examples for constructing the proof for withdraws via viem @tynes ?

from optimism.

tynes avatar tynes commented on June 11, 2024

Do you have any code examples for constructing the proof for withdraws via viem @tynes ?

https://github.com/wevm/viem/blob/d6ae8fa770679306d1eb86b5fb24d3bf2c764aa6/site/pages/op-stack/guides/withdrawals.md

This took a quick search thru their docs page to find

from optimism.

jtfirek avatar jtfirek commented on June 11, 2024

Thanks

from optimism.

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.