Giter VIP home page Giter VIP logo

Comments (7)

liujun93 avatar liujun93 commented on August 18, 2024

@lvn-rusty-dragon you can set isLazy true to avoid unpleasant console errors.

In this way if you provide endpointOptions in ChainProvider, it will give preference to the endpoint you provide.

from cosmos-kit.

liujun93 avatar liujun93 commented on August 18, 2024

for chainName seitestnet2, isTestNet should be true according to the code, and it will apply this format https://rpc.testcosmos.directory/${chain.name} rather than https://rpc.cosmos.directory/${chain.name}. Are you sure https://rpc.cosmos.directory/seitestnet2 is generated?

from cosmos-kit.

lvn-rusty-dragon avatar lvn-rusty-dragon commented on August 18, 2024

you can set isLazy true to avoid unpleasant console errors

That sounds like a great solution for us for now, thank you!

for chainName seitestnet2, isTestNet should be true according to the code, and it will apply this format https://rpc.testcosmos.directory/${chain.name} rather than https://rpc.cosmos.directory/${chain.name}. Are you sure https://rpc.cosmos.directory/seitestnet2 is generated?

I agree with your read of the code, I don't know why it's using rpc.cosmos.directory instead of testcosmos. However, I just tried again from scratch and got the same result.

from cosmos-kit.

liujun93 avatar liujun93 commented on August 18, 2024

@lvn-rusty-dragon hmmm...weird. Can you provide an example test repo to produce it?

from cosmos-kit.

lvn-rusty-dragon avatar lvn-rusty-dragon commented on August 18, 2024

I've put together a repro here:

from cosmos-kit.

twhy avatar twhy commented on August 18, 2024

Hi @lvn-rusty-dragon, after some investigations, we found that upgrading cosmos-kit related packages to lastest versions will solve the problem.

https://rpc.testcosmos.directory/${chain.name} instead of https://rpc.cosmos.directory/${chain.name}

"@cosmos-kit/core": "1.5.2",
"@cosmos-kit/keplr": "0.33.31",
"@cosmos-kit/react": "1.3.25",

BTW, JSON.stringify(wallet, null, 2) can make your JSON output look nicer.

<pre style={{ fontSize: '12px' }}>{JSON.stringify(wallet, null, 2)}</pre>

Thank you for reporting this issue.

from cosmos-kit.

lvn-rusty-dragon avatar lvn-rusty-dragon commented on August 18, 2024

Thanks @twhy!

from cosmos-kit.

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.