GithubHelp home page GithubHelp logo

Comments (6)

boulinb avatar boulinb commented on June 17, 2024 1

hey @ignaciosantise

Here's the sessionParams code for the implementation above

const DEFAULT_CHAIN = ['eip155:1', 'eip155:56', 'eip155:137'];

  const REQUIRED_METHODS = ['eth_sendTransaction', 'personal_sign'];
  const REQUIRED_EVENTS = ['chainChanged', 'accountsChanged'];
  const sessionParams = {
    namespaces: {
      eip155: {
        methods: REQUIRED_METHODS,
        chains: DEFAULT_CHAIN,
        events: REQUIRED_EVENTS,
        rpcMap: {},
      },
    }
  };

from web3modal-react-native.

ignaciosantise avatar ignaciosantise commented on June 17, 2024

hey @boulinb if it works correctly in Rainbow, then the problem is on the wallet side.

Can you upload the sessionParams you are using?

from web3modal-react-native.

ignaciosantise avatar ignaciosantise commented on June 17, 2024

@boulinb can you check if it works with the latest version of Trust Wallet? I've just connected successfully

from web3modal-react-native.

itsnyx avatar itsnyx commented on June 17, 2024

@ignaciosantise I've checked latest version of trust wallet.
I could not initiate transaction !
is there a fix for this like new method ?

from web3modal-react-native.

boulinb avatar boulinb commented on June 17, 2024

Hey,

I'm updating the issue: I've found where the problem was coming from and I understand why it works well for you @ignaciosantise

When I imported my Trustwallet account for testing, I imported it as an ETH account, which is why it can't recognise other chains (see video below).

RecordIt-1686314243.mp4

Do you think it will be possible to handle the error directly from the library in the future?

from web3modal-react-native.

ignaciosantise avatar ignaciosantise commented on June 17, 2024

Hey @boulinb nice catch! I've just checked if i can do something in the SDK side but unfortunately i don't get any error/log/info when this happens :/

Most wallets show an error message saying that some networks are incompatible, maybe you can reach Trust with this suggestion.

Im closing this issue, as you've found the root cause 💪

from web3modal-react-native.

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.