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

Typo in NethereumMetamask.jslib #9

Open
fukaraadam opened this issue Jan 17, 2023 · 0 comments
Open

Typo in NethereumMetamask.jslib #9

fukaraadam opened this issue Jan 17, 2023 · 0 comments

Comments

@fukaraadam
Copy link

fukaraadam commented Jan 17, 2023

I think there is a little typo in NethereumMetamask.jslib which causes to empty public key when accounts changed.
`

    ethereum.on("accountsChanged",
            function (accounts) {
                //console.log(accounts[0]);
                let account = "";
                if(account[0] !== undefined){
                    account = account[0];
                }
                nethereumUnityInstance.SendMessage(parsedObjectName, parsedCallbackAccountChange, account);
            });
    ethereum.on("chainChanged",
            function (chainId) {
                // console.log(chainId);
                nethereumUnityInstance.SendMessage(parsedObjectName, parsedCallbackChainChange, chainId.toString());
            });

`

in ethereum.on("accountsChanged, ...) accounts array typed as "account" (without 's')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant