WalletConnect / Web3ModalFlutter

The Web3Modal for WalletConnect built using Flutter.
https://pub.dev/packages/web3modal_flutter
Apache License 2.0
44 stars 42 forks source link

Binance sign request #154

Closed samuel2629 closed 2 months ago

samuel2629 commented 3 months ago

I'm trying to implement the connect and sign with Binance, connection is ok but when trying to sign, it asks to go to pro version and when going to pro version it's saying that this link doesn't work and to check if the app is up to date (of course i already check) the logic of the code is very basic and works with a lot of wallets like meta, trust, coinbase, rainbow...

Any idea ? Thank you

WhatsApp Image 2024-07-18 at 15 13 48 WhatsApp Image 2024-07-18 at 15 13 49

quetool commented 3 months ago

Can you share steps to reproduce and code?

samuel2629 commented 3 months ago

First :

w3mService.value = W3MService(
      context: context,
      projectId: projectID,
      logLevel: LogLevel.error,
      metadata: PairingMetadata(
        name: name,
        description: desc,
        url: url,
        icons: icons,
        redirect: Redirect(
          native: nativeUrl,
          universal: universalUrl,
        ),
      ),
    );

Then to connect :

w3mService.openModalView()

And to sign :

w3mService.value!.launchConnectedWallet();
final session = widget.w3mService.session!;
EIP155.callMethod(
          w3mService: w3mService,
          topic: session.topic ?? "",
          method: method,
          chainId: chainMetadata.w3mChainInfo.namespace,
          address: address.toLowerCase(),
        );

It is very basic and works with a lot of wallets but not binance

quetool commented 2 months ago

Hello @samuel2629, sorry for the late response. Anyway this is not useful to me, I would need the actual implementation of EIP155.callMethod(), basically I would need to see how you call w3mService.request() method.

quetool commented 2 months ago

Hello @samuel2629! I'll close this for now, feel free to re-open if issue still exists.