Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public Address #229

Closed
draco-arts opened this issue May 11, 2024 · 1 comment
Closed

Public Address #229

draco-arts opened this issue May 11, 2024 · 1 comment
Labels
question Further information is requested

Comments

@draco-arts
Copy link

draco-arts commented May 11, 2024

i have connect wallet but issue is coming when i connect wallet in android how to get wallet address
private async void InitialiseDapp(bool connected)
{

        // SessionResumed is true if Modal resumed session from storage
        if (connected)
            EnableDappButtons();
        else
            EnableNetworksList();

        // Invoked after wallet connected
        WalletConnect.Instance.ActiveSessionChanged += (_, @struct) =>
        {
            Debug.Log(" "+ @struct.Topic);
            if (string.IsNullOrEmpty(@struct.Topic))
                return;     
            EnableDappButtons();
        };
        // Invoked after wallet disconnected
        WalletConnect.Instance.SessionDisconnected += (_, _) =>
        {
            Debug.Log($"[WalletConnectModalSample] Session deleted.");
            EnableNetworksList();
        };
    }

please check this give me sulation when i connect wallet public address Debug

@skibitsky
Copy link
Member

skibitsky commented May 13, 2024

Hey,

You can get an address like this:

var address = WalletConnect.Instance.SignClient.AddressProvider.CurrentAddress().Address; 

@skibitsky skibitsky added the question Further information is requested label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants